]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: -Wdeprecated enables later standard deprecations
authorJason Merrill <jason@redhat.com>
Wed, 2 Oct 2024 17:23:53 +0000 (13:23 -0400)
committerJason Merrill <jason@redhat.com>
Thu, 3 Oct 2024 16:39:00 +0000 (12:39 -0400)
commitdca2b47916c6646dc8bc1cfc0d07e70b05d36a78
tree0c4d57e148f84846767608f4d2bff08811bfa3ec
parentb6ff52a9957c05834351a39517dd49966cb1092c
c++: -Wdeprecated enables later standard deprecations

By default -Wdeprecated warns about deprecations in the active standard.
When specified explicitly, let's also warn about deprecations in later
standards.

gcc/c-family/ChangeLog:

* c-opts.cc (c_common_post_options): Explicit -Wdeprecated enables
deprecations from later standards.

gcc/ChangeLog:

* doc/invoke.texi: Explicit -Wdeprecated enables more warnings.
gcc/c-family/c-opts.cc
gcc/doc/invoke.texi