Merge pull request #3322 from kkartaltepe/unused-var-cleanup

obs-filters/obs-outputs: Cleanup unused var warns
This commit is contained in:
Jim 2020-08-23 12:40:54 -07:00 committed by GitHub
commit aef10d46c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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