aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.cc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2023-01-31 12:56:56 -0500
committerJason Merrill <jason@redhat.com>2023-01-31 21:25:42 -0500
commite2f939d30f5b397011d1dc06370dd8196aceebda (patch)
tree6e307314c373f719439a51e93bd85680c9f69db1 /gcc/gcc.cc
parentd03ae4be2c6d48255b18bb35dc25e551bd3a3b9d (diff)
downloadgcc-e2f939d30f5b397011d1dc06370dd8196aceebda.zip
gcc-e2f939d30f5b397011d1dc06370dd8196aceebda.tar.gz
gcc-e2f939d30f5b397011d1dc06370dd8196aceebda.tar.bz2
c++: Add -Wno-changes-meaning
In recent years this error has been coming up more because other compilers don't diagnose it as consistently. So let's add a flag for it, and be more lenient about cases that aren't likely to cause bugs. gcc/ChangeLog: * doc/invoke.texi: Document -Wno-changes-meaning. gcc/c-family/ChangeLog: * c.opt: Add -Wno-changes-meaning. gcc/cp/ChangeLog: * class.cc (note_name_declared_in_class): Change from permerror to -Wchanges-meaning pedwarn, forcing -pedantic-errors for most cases. gcc/testsuite/ChangeLog: * g++.dg/warn/changes-meaning2.C: New test. * g++.dg/warn/changes-meaning3.C: New test.
Diffstat (limited to 'gcc/gcc.cc')
0 files changed, 0 insertions, 0 deletions