Home GnuPG

gpgscm: Suppress warnings for GCC > 6.

Description

gpgscm: Suppress warnings for GCC > 6.

* tests/gpgscm/scheme.c (CASE): Use unused attribute for GCC > 6.
(FALLTHROUGH): New for fallthrough.
(Eval_Cycle): Use FALLTHROUGH.  Remove not-needed comment of
fallthrough.

Since GCC combines C preprocessor macro expansion, the fallthrough
comment doesn't work well to suppress warnings for
-Wimplicit-fallthrough, near the macro CASE. To handle this
problem, we use GCC's extension of unused label and fallthrough
attributes.

Cherry-picked from gnupg master commit of:
99c17b970bc0ca7e0cff7fe031c6f9feb05af3ff

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Sep 6 2018, 8:02 AM
Parents
rE2148e19fbefa: po: Fix the previous commit.
Branches
Unknown
Tags
Unknown