summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-09-20 10:56:44 +0200
committerDaniel Stenberg <daniel@haxx.se>2022-09-23 08:27:43 +0200
commitb23ce2cee7329bbf425f18b49973b7a5f23dfcb4 (patch)
treec108c14f2189514b450fa9c5f966c9f2a7dc6dba /m4
parent549032df4107f5978b8867a56355efa5d2f60f9f (diff)
downloadcurl-b23ce2cee7329bbf425f18b49973b7a5f23dfcb4.tar.gz
curl-compilers.m4: for gcc + want warnings, set gnu89 standard
To better verify that the code is C89 Closes #9542
Diffstat (limited to 'm4')
-rw-r--r--m4/curl-compilers.m41
1 files changed, 1 insertions, 0 deletions
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.