summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2018-07-09 18:43:55 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2018-08-21 18:53:45 +0200
commit60776a0515c2a8f572902ad5bcc9f63eeaeafa84 (patch)
tree79eb46200916b3c1c4df98fca8c2cb79d2c87acc /m4
parentd5c0351055d5709da8f3e16c91348092fdb481aa (diff)
downloadcurl-60776a0515c2a8f572902ad5bcc9f63eeaeafa84.tar.gz
curl-compilers: enable -Wbad-function-cast on GCC
This warning used to be enabled only for clang as it's a bit stricter on GCC. Silence the remaining occurrences and enable it on GCC too. Closes https://github.com/curl/curl/pull/2747
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 c1ae6a559..63e45f3e0 100644
--- a/m4/curl-compilers.m4
+++ b/m4/curl-compilers.m4
@@ -977,6 +977,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
dnl Only gcc 2.95 or later
if test "$compiler_num" -ge "295"; then
tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
+ tmp_CFLAGS="$tmp_CFLAGS -Wbad-function-cast"
fi
#
dnl Only gcc 2.96 or later