diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4 index dba2c755f9..e39d978013 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.