Skip to content

Commit

Permalink
curl-compilers.m4: for gcc + want warnings, set gnu89 standard
Browse files Browse the repository at this point in the history
To better verify that the code is C89
  • Loading branch information
bagder committed Sep 21, 2022
1 parent a2fa5f8 commit f51f81a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions m4/curl-compilers.m4
Expand Up @@ -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.
Expand Down

0 comments on commit f51f81a

Please sign in to comment.