diff options
Diffstat (limited to '')
-rw-r--r-- | src/libkeccak/generalised-spec.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/libkeccak/generalised-spec.c b/src/libkeccak/generalised-spec.c index 94d6321..b053a98 100644 --- a/src/libkeccak/generalised-spec.c +++ b/src/libkeccak/generalised-spec.c @@ -19,6 +19,8 @@ #include "generalised-spec.h" +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wmaybe-uninitialized" #define have(v) (spec->v != LIBKECCAK_GENERALISED_SPEC_AUTOMATIC) #define copy(v) (v = spec->v) #define deft(v, dv) (have_##v ? v : (dv)) @@ -37,9 +39,6 @@ int libkeccak_degeneralise_spec(libkeccak_generalised_spec_t* restrict spec, libkeccak_spec_t* restrict output_spec) { -# pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Wmaybe-uninitialized" - long state_size, word_size, capacity, bitrate, output; const int have_state_size = have(state_size); const int have_word_size = have(word_size); @@ -128,8 +127,6 @@ int libkeccak_degeneralise_spec(libkeccak_generalised_spec_t* restrict spec, spec->word_size = state_size / 25; return 0; - -# pragma GCC diagnostic pop } @@ -137,3 +134,5 @@ int libkeccak_degeneralise_spec(libkeccak_generalised_spec_t* restrict spec, #undef copy #undef have +# pragma GCC diagnostic pop + |