From aec0c9eaeab23a4361bc4d3730bca88abfe86c4d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 2 Oct 2015 11:32:23 +0200 Subject: only include gcc diagnositic pragma when compiling with gcc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libkeccak/generalised-spec.c | 5 +++++ 1 file changed, 5 insertions(+) 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__ -- cgit v1.2.3-70-g09d2