aboutsummaryrefslogtreecommitdiff
path: root/src/lib/tls
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/tls
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/tls')
-rw-r--r--src/lib/tls/x509_nss.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/tls/x509_nss.c b/src/lib/tls/x509_nss.c
index 341bb57104..9ee92e9fb0 100644
--- a/src/lib/tls/x509_nss.c
+++ b/src/lib/tls/x509_nss.c
@@ -20,11 +20,13 @@
#include "lib/encoding/time_fmt.h"
#include "lib/string/printf.h"
+DISABLE_GCC_WARNING("-Wstrict-prototypes")
#include <pk11pub.h>
#include <cryptohi.h>
#include <cert.h>
#include <keyhi.h>
#include <time.h>
+ENABLE_GCC_WARNING("-Wstrict-prototypes")
/* Units of PRTime per second.
*