mirror of
https://github.com/curl/curl.git
synced 2026-04-22 00:52:12 +03:00
curl-compilers.m4: for gcc + want warnings, set gnu89 standard
To better verify that the code is C89 Closes #9542
This commit is contained in:
parent
549032df41
commit
b23ce2cee7
1 changed files with 1 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue