]> granicus.if.org Git - libevent/commitdiff
Get rid of unknown pragma warnings.
authorJoakim Soderberg <joakim.soderberg@gmail.com>
Tue, 17 Dec 2013 13:32:07 +0000 (14:32 +0100)
committerJoakim Soderberg <joakim.soderberg@gmail.com>
Tue, 17 Dec 2013 13:32:07 +0000 (14:32 +0100)
bufferevent_openssl.c
sample/https-client.c
sample/le-proxy.c
sample/openssl_hostname_validation.c
test/regress_ssl.c

index 89fc7eaafc4e85cf740c4332094f79d6fcf662e9..f44b8e5fe172761737ef4adae492a2467cddd6fb 100644 (file)
@@ -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"
index 165c5e69006ebf7a2a9dff0a6dd9d6acf6bd44dc..b40f92b9945ec53d43189e0cb6607e318cb80dd0 100644 (file)
@@ -11,7 +11,9 @@
  */
 
 // Get rid of OSX 10.7 and greater deprecation warnings.
+#ifdef __clang__
 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#endif
 
 #include <stdio.h>
 #include <assert.h>
index a348bdb669424c3bb2d2a6c7f6be75201361ea5f..0c918d7ac333a6598aca48b8e6fbf4a6fc228975 100644 (file)
@@ -6,7 +6,9 @@
  */
 
 // Get rid of OSX 10.7 and greater deprecation warnings.
+#ifdef __clang__
 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#endif
 
 #include <stdio.h>
 #include <assert.h>
index 1c95373d8e84dfe30ee1f39039aab9f01e344f55..6ab94f519e2ed8c2bba97cd2705ef852a1d08cc4 100644 (file)
@@ -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 <openssl/x509v3.h>
 #include <openssl/ssl.h>
index 60fe9639feaa6eedb48dbfbe30fdaccf8ad28375..e72b8dbfaa2dfe56b26def01d52269a308efaa4f 100644 (file)
@@ -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 <winsock2.h>