summaryrefslogtreecommitdiff
path: root/src/modules/m_httpd.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-03-08 10:50:08 +0000
committerPeter Powell <petpow@saberuk.com>2019-03-08 10:50:08 +0000
commit83d2331a032b18346b967a6bdf6f336c0e2a26ef (patch)
tree7c54ebdc688b46f82db8d1fd078669ee63fcc6ae /src/modules/m_httpd.cpp
parent4be144252bf894e6a964a12d7dbc12f91ced908b (diff)
Fix an "unknown pragma" warning on Windows.
Diffstat (limited to 'src/modules/m_httpd.cpp')
-rw-r--r--src/modules/m_httpd.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp
index 168e09bb8..e5d0a08e4 100644
--- a/src/modules/m_httpd.cpp
+++ b/src/modules/m_httpd.cpp
@@ -40,7 +40,9 @@
#endif
// Fix warnings about shadowing in http_parser.
-#pragma GCC diagnostic ignored "-Wshadow"
+#ifdef _GNUC
+# pragma GCC diagnostic ignored "-Wshadow"
+#endif
#include <http_parser.c>