gpgscm: Suppress warnings for GCC > 6.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 6 Sep 2018 05:53:35 +0000 (14:53 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 6 Sep 2018 05:53:35 +0000 (14:53 +0900)
commit99c17b970bc0ca7e0cff7fe031c6f9feb05af3ff
tree86ca0be79ea76086661684e5bdfe00e293a6a37d
parent625ced6e672daa892d334323cce6b3d42a6f929f
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.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
tests/gpgscm/scheme.c