Better to declare undeclared or unintialized vars early, so use the 'strict' & 'warnings' pragmas. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- cgcc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cgcc b/cgcc index 90cc5f77b..add35cba9 100755 --- a/cgcc +++ b/cgcc @@ -1,6 +1,9 @@ #!/usr/bin/perl -w # ----------------------------------------------------------------------------- +use strict; +use warnings; + my $cc = $ENV{'REAL_CC'} || 'cc'; my $check = $ENV{'CHECK'} || 'sparse'; my $ccom = $cc; -- 2.20.1