This avoids the following warnings when building with GCC 14:

    In file included from ../misc/fegetenv.c:7:
    ../include/internal.h: In function ‘fegetenv’:
    ../include/internal.h:188:29: warning: inlining failed in call to 
‘fenv_encode’: --param max-inline-insns-single limit reached [-Winline]
      188 | static inline unsigned long fenv_encode(unsigned int x, unsigned 
int y)
          |                             ^~~~~~~~~~~
    ../misc/fegetenv.c:21:21: note: called from here
       21 |     env->_Fe_stat = fenv_encode(x87, sse);
          |                     ^~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Martin Storsjö <[email protected]>
---
 mingw-w64-crt/configure.ac | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/mingw-w64-crt/configure.ac b/mingw-w64-crt/configure.ac
index f830aeefc..b71b0564e 100644
--- a/mingw-w64-crt/configure.ac
+++ b/mingw-w64-crt/configure.ac
@@ -426,16 +426,16 @@ AS_CASE([$warning_level],
     ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra"
     ADD_C_ONLY_WARNING_FLAGS="-Wimplicit-function-declaration"],
   [2],[
-    ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing -Wshadow 
-Wpacked -Winline"
+    ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing -Wshadow 
-Wpacked"
     ADD_C_ONLY_WARNING_FLAGS="-Wimplicit-function-declaration"],
   [3],[
-    ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing -Wshadow 
-Wpacked -Winline"
+    ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing -Wshadow 
-Wpacked"
     ADD_C_ONLY_WARNING_FLAGS="-Wimplicit-function-declaration 
-Wmissing-noreturn -Wmissing-prototypes"],
   [4],[
-    ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing=2 
-Wsystem-headers -Wshadow -Wmissing-declarations -Wpacked -Winline -Werror 
-pedantic"
+    ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing=2 
-Wsystem-headers -Wshadow -Wmissing-declarations -Wpacked -Werror -pedantic"
     ADD_C_ONLY_WARNING_FLAGS="-Wimplicit-function-declaration 
-Wmissing-noreturn -Wmissing-prototypes"],
   [5],[
-    ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing=2 
-Wsystem-headers -Wshadow -Wmissing-declarations -Wpacked -Wredundant-decls 
-Winline -Werror -Wfatal-errors -pedantic -pedantic-errors"
+    ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing=2 
-Wsystem-headers -Wshadow -Wmissing-declarations -Wpacked -Wredundant-decls 
-Werror -Wfatal-errors -pedantic -pedantic-errors"
     ADD_C_ONLY_WARNING_FLAGS="-Wimplicit-function-declaration 
-Wmissing-noreturn -Wmissing-prototypes"]
    )
 
-- 
2.43.0



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to