From b23ce2cee7329bbf425f18b49973b7a5f23dfcb4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 20 Sep 2022 10:56:44 +0200 Subject: curl-compilers.m4: for gcc + want warnings, set gnu89 standard To better verify that the code is C89 Closes #9542 --- m4/curl-compilers.m4 | 1 + 1 file changed, 1 insertion(+) (limited to 'm4') diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4 index dba2c755f..e39d97801 100644 --- a/m4/curl-compilers.m4 +++ b/m4/curl-compilers.m4 @@ -860,6 +860,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [ GNU_C) # if test "$want_warnings" = "yes"; then + tmp_CFLAGS="$tmp_CFLAGS -std=gnu89" # dnl Do not enable -pedantic when cross-compiling with a gcc older dnl than 3.0, to avoid warnings from third party system headers. -- cgit v1.2.1