]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl-compilers.m4: for gcc + want warnings, set gnu89 standard
authorDaniel Stenberg <daniel@haxx.se>
Tue, 20 Sep 2022 08:56:44 +0000 (10:56 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 23 Sep 2022 06:27:43 +0000 (08:27 +0200)
To better verify that the code is C89

Closes #9542

m4/curl-compilers.m4

index dba2c755f99dc239cdf97100a6750968570a2cf2..e39d978013c46f9f3ab18323f7ba7e6087abac8f 100644 (file)
@@ -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.