From: Lincoln Ramsay Date: Thu, 28 Apr 2011 04:19:42 +0000 (+1000) Subject: Warn everywhere, not just Unix X-Git-Tag: qt-v5.0.0-alpha1~349 X-Git-Url: http://git.qt-users.jp/git/?p=mirror%2Fqt%2Fqt5.git;a=commitdiff_plain;h=984400a5865ceee22ee2c7e2a4b09f2ddef6fc1d Warn everywhere, not just Unix use warnings; is the portable way of doing #!/usr/bin/perl -w Also use strict; in init-repository. Signed-off-by: axis --- diff --git a/configure b/configure index b8ee11f..5ca40f3 100755 --- a/configure +++ b/configure @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl #################################################################################################### # # Mother script for Qt Modularization @@ -8,6 +8,7 @@ # #################################################################################################### use strict; +use warnings; use File::Basename; use File::Path; diff --git a/init-repository b/init-repository index 4acc22c..ef2e6d5 100755 --- a/init-repository +++ b/init-repository @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl ############################################################################# ## ## Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). @@ -40,6 +40,9 @@ ## ############################################################################# +use strict; +use warnings; + my $force = 0; my $quiet = 0; my $nokia_developer = 0;