From: Yang Tse Date: Thu, 2 Oct 2008 03:59:25 +0000 (+0000) Subject: runtests.pl enables picky compiler warnings unless explicitly disabled X-Git-Tag: curl-7_19_1~242 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac0e0351a0c8bf992f0a8f57dabfdbab6936ede2;p=curl runtests.pl enables picky compiler warnings unless explicitly disabled --- diff --git a/tests/testcurl.pl b/tests/testcurl.pl index c68147799..6369e33c3 100755 --- a/tests/testcurl.pl +++ b/tests/testcurl.pl @@ -274,6 +274,13 @@ if ($fixed < 4) { close(F); } +# Enable picky compiler warnings unless explicitly disabled +if (($confopts !~ /--enable-debug/) && + ($confopts !~ /--enable-warnings/) && + ($confopts !~ /--disable-warnings/)) { + $confopts .= " --enable-warnings"; +} + my $str1066os = 'o' x 1066; # Set timestamp to the UTC this script is running. Its value might