]> granicus.if.org Git - curl/commitdiff
runtests.pl enables picky compiler warnings unless explicitly disabled
authorYang Tse <yangsita@gmail.com>
Thu, 2 Oct 2008 03:59:25 +0000 (03:59 +0000)
committerYang Tse <yangsita@gmail.com>
Thu, 2 Oct 2008 03:59:25 +0000 (03:59 +0000)
tests/testcurl.pl

index c68147799e0ff1c87ab98b2524e3895f33a11eb2..6369e33c373a5303f03848c1c2f32459341b662d 100755 (executable)
@@ -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