winetest: Consistently use strict and warnings in the main CGI scripts. (try2)

Francois Gouget fgouget at codeweavers.com
Wed Jul 23 02:09:05 CDT 2014


---

Alexandre Julliard wrote:
> Any reason for adding this? I thought you wanted to remove them...

winetest.cgi did not have warnings enabled at all initially so 
presumably I first added the -w option and then switched to 'use 
warnings' but forgot to remove the option. Thanks for spotting this.

 winetest/site         | 3 +++
 winetest/winetest.cgi | 1 +
 2 files changed, 4 insertions(+)

diff --git a/winetest/site b/winetest/site
index f7996a6..a942491 100755
--- a/winetest/site
+++ b/winetest/site
@@ -5,6 +5,9 @@
 # by Jeremy Newman <jnewman at codeweavers.com>
 #
 
+use strict;
+use warnings;
+
 # load CGI object
 use CGI qw(:standard);
 my $q = new CGI;
diff --git a/winetest/winetest.cgi b/winetest/winetest.cgi
index 8c72e02..2cc1190 100755
--- a/winetest/winetest.cgi
+++ b/winetest/winetest.cgi
@@ -17,6 +17,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 use strict;
+use warnings;
 use vars qw/$queuedir $maxfilesize/;
 
 BEGIN {
-- 
2.0.1



More information about the wine-patches mailing list