diff mbox series

[PUSHED] c-family: Add Warning property to Wnrvo option [PR115624]

Message ID 20240625045501.3810818-1-quic_apinski@quicinc.com
State New
Headers show
Series [PUSHED] c-family: Add Warning property to Wnrvo option [PR115624] | expand

Commit Message

Andrew Pinski June 25, 2024, 4:55 a.m. UTC
This was missing when Wnrvo was added in
r14-1594-g2ae5384d457b9c67586de012816dfc71a6943164 .

Pushed to the trunk and GCC 14 branch as obvious 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>
---
 gcc/c-family/c.opt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt
index b067369fa7e..864ef4e3b3d 100644
--- a/gcc/c-family/c.opt
+++ b/gcc/c-family/c.opt
@@ -1137,7 +1137,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