From d45823018e8be7ca1a3f70c4de1fb12826b2a102 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 31 Aug 2015 22:09:15 +0200 Subject: fix warning (compiler regression?) 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 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src') 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 + -- cgit v1.2.3-70-g09d2