mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Use new ENABLE/DISABLE_GCC_WARNING
This is an automated commit, generated by: perl -i -pe 'next if /define/; s/((?:ENABLE|DISABLE)_GCC_WARNING)\(([A-Za-z0-9_\-]+)\)/$1(\"-W$2\")/' src/*/*/*.[ch] src/*/*.[ch]
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
/* Some versions of OpenSSL declare X509_STORE_CTX_set_verify_cb twice in
|
||||
* x509.h and x509_vfy.h. Suppress the GCC warning so we can build with
|
||||
* -Wredundant-decl. */
|
||||
DISABLE_GCC_WARNING(redundant-decls)
|
||||
DISABLE_GCC_WARNING("-Wredundant-decls")
|
||||
|
||||
#include <openssl/evp.h>
|
||||
#include <openssl/pem.h>
|
||||
@@ -30,7 +30,7 @@ DISABLE_GCC_WARNING(redundant-decls)
|
||||
#include <openssl/obj_mac.h>
|
||||
#include <openssl/err.h>
|
||||
|
||||
ENABLE_GCC_WARNING(redundant-decls)
|
||||
ENABLE_GCC_WARNING("-Wredundant-decls")
|
||||
#endif /* defined(ENABLE_OPENSSL) */
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
Reference in New Issue
Block a user