aboutsummaryrefslogtreecommitdiff
path: root/src/lib/crypt_ops/crypto_rand.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2021-06-28 09:08:31 -0400
committerNick Mathewson <nickm@torproject.org>2021-06-28 09:10:28 -0400
commitfce99957e238706912a6e940c878648b6ebd8f2b (patch)
tree93a5706cb906c37466702b2ae2d60c74f77e3859 /src/lib/crypt_ops/crypto_rand.c
parent83483bd4f6326b519871208b3e5af4ae01f13179 (diff)
downloadtor-fce99957e238706912a6e940c878648b6ebd8f2b.tar.gz
tor-fce99957e238706912a6e940c878648b6ebd8f2b.zip
Suppress strict-prototypes warning on NSS pk11pub.h header
We already did this in a couple of places, but there are more that we didn't get. This is necessary for systems with versions of NSS that don't do their prototypes properly. Fixes #40409; bugfix on 0.3.5.1-alpha.
Diffstat (limited to 'src/lib/crypt_ops/crypto_rand.c')
-rw-r--r--src/lib/crypt_ops/crypto_rand.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/crypt_ops/crypto_rand.c b/src/lib/crypt_ops/crypto_rand.c
index ce6f21dbb4..b1e3dcb6fa 100644
--- a/src/lib/crypt_ops/crypto_rand.c
+++ b/src/lib/crypt_ops/crypto_rand.c
@@ -50,9 +50,11 @@ ENABLE_GCC_WARNING("-Wredundant-decls")
#endif /* defined(ENABLE_OPENSSL) */
#ifdef ENABLE_NSS
+DISABLE_GCC_WARNING("-Wstrict-prototypes")
#include <pk11pub.h>
#include <secerr.h>
#include <prerror.h>
+ENABLE_GCC_WARNING("-Wstrict-prototypes")
#endif
#if __GNUC__ && GCC_VERSION >= 402