]> git.ipfire.org Git - thirdparty/gcc.git/commit
docs: Adjust -Wimplicit-fallthrough= documentation for C23
authorJakub Jelinek <jakub@redhat.com>
Tue, 16 Sep 2025 17:25:58 +0000 (19:25 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 16 Sep 2025 17:26:48 +0000 (19:26 +0200)
commit5eb86c29d29fa25f8ad81d75730a993bb03fb558
tree2f247059af0f63ccf071e64838cc01d23dc2b24a
parent5d774ec80bcb633a393790154c9969218b7c782f
docs: Adjust -Wimplicit-fallthrough= documentation for C23

I've noticed in -Wimplicit-fallthrough= documentation we talk about
[[fallthrough]]; for C++17 but don't mention that it is also standard
way to suppress the warning for C23.

2025-09-16  Jakub Jelinek  <jakub@redhat.com>

* doc/invoke.texi (Wimplicit-fallthrough=): Document that also C23
provides a standard way to suppress the warning with [[fallthrough]];.
gcc/doc/invoke.texi