runtests.pl enables picky compiler warnings unless explicitly disabled

This commit is contained in:
Yang Tse 2008-10-02 03:59:25 +00:00
parent 2245ac2f88
commit ac0e0351a0
1 changed files with 7 additions and 0 deletions

View File

@ -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