summaryrefslogtreecommitdiff
path: root/src/modules/m_sha256.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_sha256.cpp')
-rw-r--r--src/modules/m_sha256.cpp7
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: