diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2022-03-26 22:07:54 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2022-03-30 08:57:59 +0200 |
commit | 4319304f61ebc6103e625ad737f55d3ac10d05eb (patch) | |
tree | 140fbdbfb20bb230f97d46db45bb9302696340ea | |
parent | 78291af555e957a149c00a68f0fefdc419feee6f (diff) | |
download | gcc-4319304f61ebc6103e625ad737f55d3ac10d05eb.zip gcc-4319304f61ebc6103e625ad737f55d3ac10d05eb.tar.gz gcc-4319304f61ebc6103e625ad737f55d3ac10d05eb.tar.bz2 |
options: Remove 'gcc/c-family/c.opt:Wuse-after-free' option definition record
A one-argument form of the 'LangEnabledBy' option property isn't defined,
and effectively appears to be a no-op. Removing that one, the
'gcc/c-family/c.opt:Wuse-after-free' option definition record becomes
empty, and doesn't add anything over 'gcc/common.opt:Wuse-after-free', and
may thus be removed entirely. This only changes 'build-gcc/gcc/optionlist'
accordingly, but no other generated files.
Clean-up after recent commit 671a283636de75f7ed638ee6b01ed2d44361b8b6
"Add -Wuse-after-free [PR80532]".
gcc/c-family/
* c.opt (Wuse-after-free): Remove.
-rw-r--r-- | gcc/c-family/c.opt | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index 3c2ec77..1034a1b 100644 --- a/gcc/c-family/c.opt +++ b/gcc/c-family/c.opt @@ -1373,14 +1373,10 @@ Wunused-const-variable= C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_unused_const_variable) Warning LangEnabledBy(C ObjC,Wunused-variable, 1, 0) IntegerRange(0, 2) Warn when a const variable is unused. -; Defining these options here in addition to common.opt is necessary +; Defining this option here in addition to common.opt is necessary ; in order for the default -Wall setting of -Wuse-after-free=2 to take ; effect. -Wuse-after-free -LangEnabledBy(C ObjC C++ LTO ObjC++) -; in common.opt - Wuse-after-free= LangEnabledBy(C ObjC C++ LTO ObjC++, Wall,2,0) ; in common.opt |