diff options
author | Werner Koch <[email protected]> | 2018-12-17 17:46:26 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2018-12-18 08:11:53 +0000 |
commit | 21fc089148678f59edb02e0e16bed65b709fb972 (patch) | |
tree | a9df736f96991929db8bc341f64390bd7836fa28 /tests/gpgscm/scheme.c | |
parent | wks: Do not use compression for the encrypted data. (diff) | |
download | gnupg-21fc089148678f59edb02e0e16bed65b709fb972.tar.gz gnupg-21fc089148678f59edb02e0e16bed65b709fb972.zip |
Silence compiler warnings new with gcc 8.
* dirmngr/dns.c: Include gpgrt.h. Silence -Warray-bounds also gcc.
* tests/gpgscm/scheme.c: Include gpgrt.h.
(Eval_Cycle): Ignore -Wimplicit-fallthrough.
--
The funny use of case and labels in the CASE macro seems confuse the
fallthrough detection.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'tests/gpgscm/scheme.c')
-rw-r--r-- | tests/gpgscm/scheme.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c index 4384841a7..b188e36ce 100644 --- a/tests/gpgscm/scheme.c +++ b/tests/gpgscm/scheme.c @@ -44,6 +44,8 @@ # endif #endif +#include "gpgrt.h" /* For GGPRT_GCC_VERSION */ + /* Used for documentation purposes, to signal functions in 'interface' */ #define INTERFACE @@ -3438,6 +3440,11 @@ int list_length(scheme *sc, pointer a) { +#if GPGRT_GCC_VERSION >= 80000 +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wimplicit-fallthrough" +#endif + #define s_retbool(tf) s_return(sc,(tf) ? sc->T : sc->F) /* kernel of this interpreter */ @@ -5323,6 +5330,11 @@ Eval_Cycle(scheme *sc, enum scheme_opcodes op) { } } +#if GPGRT_GCC_VERSION >= 80000 +# pragma GCC diagnostic pop +#endif + + typedef int (*test_predicate)(pointer); static int is_any(pointer p) { |