浏览代码

Suppress strict-prototypes warnings in one more batch of NSS headers

Nick Mathewson 5 年之前
父节点
当前提交
710aa122e4
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/lib/tls/tortls_nss.c

+ 2 - 0
src/lib/tls/tortls_nss.c

@@ -33,6 +33,7 @@
 #include "lib/tls/tortls_internal.h"
 #include "lib/log/util_bug.h"
 
+DISABLE_GCC_WARNING(strict-prototypes)
 #include <prio.h>
 // For access to raw sockets.
 #include <private/pprio.h>
@@ -40,6 +41,7 @@
 #include <sslt.h>
 #include <sslproto.h>
 #include <certt.h>
+ENABLE_GCC_WARNING(strict-prototypes)
 
 static SECStatus always_accept_cert_cb(void *, PRFileDesc *, PRBool, PRBool);