summaryrefslogtreecommitdiff
path: root/tests/testcurl.pl
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-02 03:59:25 +0000
committerYang Tse <yangsita@gmail.com>2008-10-02 03:59:25 +0000
commitac0e0351a0c8bf992f0a8f57dabfdbab6936ede2 (patch)
tree1090497cb14a488a161d71901e53edb57ac89af7 /tests/testcurl.pl
parent2245ac2f884513bb3145f841fb3a9aed80b6ff34 (diff)
downloadcurl-ac0e0351a0c8bf992f0a8f57dabfdbab6936ede2.tar.gz
runtests.pl enables picky compiler warnings unless explicitly disabled
Diffstat (limited to 'tests/testcurl.pl')
-rwxr-xr-xtests/testcurl.pl7
1 files changed, 7 insertions, 0 deletions
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