obs-filters/obs-outputs: Cleanup unused var warns

Fix unused variables when compiling without rnnoise
Fix unused variable warnings in GCC when using assert() in release
This commit is contained in:
Kurt Kartaltepe 2020-08-23 12:04:39 -07:00
parent 0c41bef84a
commit 43da6eacd0
3 changed files with 4 additions and 0 deletions

View File

@ -376,6 +376,8 @@ static inline void process_rnnoise(struct noise_suppress_data *ng)
}
}
}
#else
UNUSED_PARAMETER(ng);
#endif
}

View File

@ -370,6 +370,7 @@ DHComputeSharedSecretKey(MDH *dh, uint8_t *pubkey, size_t nPubkeyLen,
MP_gethex(q1, Q1024, len);
assert(len);
UNUSED_PARAMETER(len); // Make GCC happy len is used in release.
if (isValidPublicKey(pubkeyBn, dh->p, q1))
res = MDH_compute_key(secret, nPubkeyLen, pubkeyBn, dh);

View File

@ -322,6 +322,7 @@ HMACsha256(const uint8_t *message, size_t messageLen, const uint8_t *key,
#endif
assert(digestLen == 32);
UNUSED_PARAMETER(digestLen); // Make GCC happy digestLen is used in release.
}
static void