diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-10-02 11:32:23 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-10-02 11:32:23 +0200 |
commit | aec0c9eaeab23a4361bc4d3730bca88abfe86c4d (patch) | |
tree | d93b6cd4f726344e25f685eafcabd1957a0b98c1 /src | |
parent | attributes are gcc specific (diff) | |
download | libkeccak-aec0c9eaeab23a4361bc4d3730bca88abfe86c4d.tar.gz libkeccak-aec0c9eaeab23a4361bc4d3730bca88abfe86c4d.tar.bz2 libkeccak-aec0c9eaeab23a4361bc4d3730bca88abfe86c4d.tar.xz |
only include gcc diagnositic pragma when compiling with gcc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/libkeccak/generalised-spec.c | 5 |
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__ |