diff options
author | linuxdaemon <linuxdaemon@users.noreply.github.com> | 2019-06-24 06:00:39 -0500 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-06-24 12:00:39 +0100 |
commit | 871d93dc76091a273296e9a0a7ce3d411054c862 (patch) | |
tree | 5eb690505ac81c283b14f6028cf81f76a2b0d51f /src/modules/m_sha256.cpp | |
parent | 04e3f329d3c1f325a74fe23e39daaf663166913b (diff) |
Reset diagnostic pragmas after including external headers (#1661).
Diffstat (limited to 'src/modules/m_sha256.cpp')
-rw-r--r-- | src/modules/m_sha256.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/m_sha256.cpp b/src/modules/m_sha256.cpp index e3ca22a2b..7afb9b3cf 100644 --- a/src/modules/m_sha256.cpp +++ b/src/modules/m_sha256.cpp @@ -22,6 +22,9 @@ /// $CompilerFlags: -Ivendor_directory("sha2") /// $CompilerFlags: require_compiler("GCC") -Wno-long-long +#ifdef __GNUC__ +# pragma GCC diagnostic push +#endif // Fix warnings about the use of `long long` on C++03. #if defined __clang__ @@ -35,6 +38,10 @@ #include <sha2.c> +#ifdef __GNUC__ +# pragma GCC diagnostic pop +#endif + class HashSHA256 : public HashProvider { public: |