[C-prog-lang-l] -Wall -Wextra Issue
David Čepelík
d at dcepelik.cz
Wed Jul 10 18:09:21 CEST 2019
Quoting Jura Pelc (2019-07-10 16:00:23)
> I am also using fall through to execute some parts of code.
> And there is an isue. Gcc with -Wall -Wextra option returns this code with
> Warning. And according to task there is not allowed any Warnings or
> Errors.
Add a /* fall-through */ (or similar) comment before the place where
the fall-through happens. See e.g. [1]. D.
[1] https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/
More information about the c-prog-lang-l
mailing list