aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libkeccak/generalised-spec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libkeccak/generalised-spec.c b/src/libkeccak/generalised-spec.c
index b053a98..f159ea5 100644
--- a/src/libkeccak/generalised-spec.c
+++ b/src/libkeccak/generalised-spec.c
@@ -19,8 +19,11 @@
#include "generalised-spec.h"
+#ifdef __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
+#endif
+
#define have(v) (spec->v != LIBKECCAK_GENERALISED_SPEC_AUTOMATIC)
#define copy(v) (v = spec->v)
#define deft(v, dv) (have_##v ? v : (dv))
@@ -134,5 +137,7 @@ int libkeccak_degeneralise_spec(libkeccak_generalised_spec_t* restrict spec,
#undef copy
#undef have
+#ifdef __GNUC__
# pragma GCC diagnostic pop
+#endif __GNUC__