aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-decl.cc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2023-12-19 15:33:07 -0500
committerJason Merrill <jason@redhat.com>2023-12-20 21:06:35 -0500
commit32bab8b57ddf0df727f5eaf99a77e70882c4e6e2 (patch)
treeadff706ff8049350430d5825460086026d4fa9df /gcc/c/c-decl.cc
parent7ad9058c042d473395ee90a4d2cdd33a456c3f7d (diff)
downloadgcc-32bab8b57ddf0df727f5eaf99a77e70882c4e6e2.zip
gcc-32bab8b57ddf0df727f5eaf99a77e70882c4e6e2.tar.gz
gcc-32bab8b57ddf0df727f5eaf99a77e70882c4e6e2.tar.bz2
opts: -Werror=foo always implies -Wfoo [PR106213]
-Werror=foo implying -Wfoo wasn't working for -Wdeprecated-copy-dtor, because it is specified as the value 2 of warn_deprecated_copy, which shows up as CLVC_EQUAL, which is not one of the three var_types handled by control_warning_option. It seems to me that we can just unconditionally handle_generated_option, and only have special argument handling for those types. PR c++/106213 gcc/ChangeLog: * opts-common.cc (control_warning_option): Call handle_generated_option for all cl_var_types. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/depr-copy5.C: New test.
Diffstat (limited to 'gcc/c/c-decl.cc')
0 files changed, 0 insertions, 0 deletions