diff options
| author | 2019-06-24 06:00:39 -0500 | |
|---|---|---|
| committer | 2019-06-24 12:00:39 +0100 | |
| commit | 871d93dc76091a273296e9a0a7ce3d411054c862 (patch) | |
| tree | 5eb690505ac81c283b14f6028cf81f76a2b0d51f /src/modules/m_httpd.cpp | |
| parent | Fix an inverted condition in the ircv3_sts module. (diff) | |
| download | inspircd++-871d93dc76091a273296e9a0a7ce3d411054c862.tar.gz inspircd++-871d93dc76091a273296e9a0a7ce3d411054c862.tar.bz2 inspircd++-871d93dc76091a273296e9a0a7ce3d411054c862.zip | |
Reset diagnostic pragmas after including external headers (#1661).
Diffstat (limited to 'src/modules/m_httpd.cpp')
| -rw-r--r-- | src/modules/m_httpd.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index c4b5dc1f2..b768789f1 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -28,6 +28,10 @@ #include "iohook.h" #include "modules/httpd.h" +#ifdef __GNUC__ +# pragma GCC diagnostic push +#endif + // Fix warnings about the use of commas at end of enumerator lists and long long // on C++03. #if defined __clang__ @@ -44,11 +48,15 @@ // Fix warnings about shadowing in http_parser. #ifdef __GNUC__ -//# pragma GCC diagnostic ignored "-Wshadow" +# pragma GCC diagnostic ignored "-Wshadow" #endif #include <http_parser.c> +#ifdef __GNUC__ +# pragma GCC diagnostic pop +#endif + class ModuleHttpServer; static ModuleHttpServer* HttpModule; |
