Make arm-xlate.pl set use strict.
authorDavid Benjamin <davidben@google.com>
Mon, 20 Jun 2016 19:05:06 +0000 (15:05 -0400)
committerRich Salz <rsalz@openssl.org>
Mon, 20 Jun 2016 20:26:15 +0000 (16:26 -0400)
It was already nearly clean. Just one undeclared variable.

Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1240)

crypto/perlasm/arm-xlate.pl

index c00f54af1bdd6978a955673c25dc218f53903266..ca2f8b990b972ceb434151e8352b9dd0345d6596 100755 (executable)
@@ -6,6 +6,8 @@
 # in the file LICENSE in the source distribution or at
 # https://www.openssl.org/source/license.html
 
+use strict;
+
 my $flavour = shift;
 my $output = shift;
 open STDOUT,">$output" || die "can't open $output: $!";
@@ -126,7 +128,7 @@ sub expand_line {
     return $line;
 }
 
-while($line=<>) {
+while(my $line=<>) {
 
     if ($line =~ m/^\s*(#|@|\/\/)/)    { print $line; next; }