From: Joakim Soderberg Date: Tue, 17 Dec 2013 13:32:07 +0000 (+0100) Subject: Get rid of unknown pragma warnings. X-Git-Tag: release-2.1.4-alpha~42^2~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ef1d04e446ac051d4a2957c29710f6e90709605;p=libevent Get rid of unknown pragma warnings. --- diff --git a/bufferevent_openssl.c b/bufferevent_openssl.c index 89fc7eaa..f44b8e5f 100644 --- a/bufferevent_openssl.c +++ b/bufferevent_openssl.c @@ -25,7 +25,9 @@ */ // Get rid of OSX 10.7 and greater deprecation warnings. +#ifdef __clang__ #pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif #include "event2/event-config.h" #include "evconfig-private.h" diff --git a/sample/https-client.c b/sample/https-client.c index 165c5e69..b40f92b9 100644 --- a/sample/https-client.c +++ b/sample/https-client.c @@ -11,7 +11,9 @@ */ // Get rid of OSX 10.7 and greater deprecation warnings. +#ifdef __clang__ #pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif #include #include diff --git a/sample/le-proxy.c b/sample/le-proxy.c index a348bdb6..0c918d7a 100644 --- a/sample/le-proxy.c +++ b/sample/le-proxy.c @@ -6,7 +6,9 @@ */ // Get rid of OSX 10.7 and greater deprecation warnings. +#ifdef __clang__ #pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif #include #include diff --git a/sample/openssl_hostname_validation.c b/sample/openssl_hostname_validation.c index 1c95373d..6ab94f51 100644 --- a/sample/openssl_hostname_validation.c +++ b/sample/openssl_hostname_validation.c @@ -35,7 +35,9 @@ SOFTWARE. */ // Get rid of OSX 10.7 and greater deprecation warnings. +#ifdef __clang__ #pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif #include #include diff --git a/test/regress_ssl.c b/test/regress_ssl.c index 60fe9639..e72b8dbf 100644 --- a/test/regress_ssl.c +++ b/test/regress_ssl.c @@ -25,7 +25,9 @@ */ // Get rid of OSX 10.7 and greater deprecation warnings. +#ifdef __clang__ #pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif #ifdef _WIN32 #include