[gcc r14-10344] c-family: Add Warning property to Wnrvo option [PR115624]
Andrew Pinski
pinskia@gcc.gnu.org
Tue Jun 25 04:58:17 GMT 2024
https://gcc.gnu.org/g:b7157f3930762097210aa24a3f24ed5cafee6672
commit r14-10344-gb7157f3930762097210aa24a3f24ed5cafee6672
Author: Andrew Pinski <quic_apinski@quicinc.com>
Date: Mon Jun 24 18:16:13 2024 -0700
c-family: Add Warning property to Wnrvo option [PR115624]
This was missing when Wnrvo was added in
r14-1594-g2ae5384d457b9c67586de012816dfc71a6943164 .
Pushed after a bootstrap/test on x86_64-linux-gnu.
gcc/c-family/ChangeLog:
PR c++/115624
* c.opt (Wnrvo): Add Warning property.
Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
(cherry picked from commit f7747210947a7c66e865c6ac571cce39e2b87caf)
Diff:
---
gcc/c-family/c.opt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt
index 403abc1f26e..b310b40d857 100644
--- a/gcc/c-family/c.opt
+++ b/gcc/c-family/c.opt
@@ -1133,7 +1133,7 @@ C ObjC Var(warn_override_init_side_effects) Init(1) Warning
Warn about overriding initializers with side effects.
Wnrvo
-C++ ObjC++ Var(warn_nrvo)
+C++ ObjC++ Var(warn_nrvo) Warning
Warn if the named return value optimization is not performed although it is allowed.
Wpacked-bitfield-compat
More information about the Gcc-cvs
mailing list