gcc13/gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
Richard Biener 8cc2efe84a - Fix condition on whether to enable plugins or JIT support to
not check sle_version which is not defined in SLFO but to check
  is_opensuse instead.

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=117
2025-02-06 10:26:15 +00:00

14 lines
728 B
Diff

Index: gcc/c-family/c.opt
===================================================================
--- gcc/c-family/c.opt (revision 246224)
+++ gcc/c-family/c.opt (working copy)
@@ -596,7 +596,7 @@ C ObjC C++ ObjC++ Var(warn_double_promot
Warn about implicit conversions from \"float\" to \"double\".
Wexpansion-to-defined
-C ObjC C++ ObjC++ CPP(warn_expansion_to_defined) CppReason(CPP_W_EXPANSION_TO_DEFINED) Var(cpp_warn_expansion_to_defined) Init(0) Warning EnabledBy(Wextra || Wpedantic)
+C ObjC C++ ObjC++ CPP(warn_expansion_to_defined) CppReason(CPP_W_EXPANSION_TO_DEFINED) Var(cpp_warn_expansion_to_defined) Init(0) Warning EnabledBy(Wpedantic)
Warn if \"defined\" is used outside #if.
Wimplicit-function-declaration