]> sourceware.org Git - valgrind.git/commitdiff
Add use strict and use warnings to perl callgrind scripts
authorMark Wielaard <mark@klomp.org>
Fri, 21 Apr 2023 16:13:14 +0000 (18:13 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 21 Apr 2023 16:13:31 +0000 (18:13 +0200)
This way we can simply use #! /usr/bin/env perl and don't need env -S
and perl -w flags which might confuse some packaging utilities.

callgrind/callgrind_annotate.in
callgrind/callgrind_control.in

index c0715e06493ac32a78fc00510ea5bffad87405f6..976fe9b5fb97dad30cc07990c0762f3a0854da4b 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/env -S perl -w
+#! /usr/bin/env perl
 ##--------------------------------------------------------------------##
 ##--- The cache simulation framework: instrumentation, recording   ---##
 ##--- and results printing.                                        ---##
@@ -59,6 +59,7 @@
 #    commifying (halves the number of commify calls)            1.68s --> 1.47s
 
 use strict;
+use warnings;
 
 #----------------------------------------------------------------------------
 # Overview: the running example in the comments is for:
index b8969373e4d499fa284ed0df1cd8784285171d6d..083ffa29fcc6db0a176159b31c78a57e0c89a1a2 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/env -S perl -w
+#! /usr/bin/env perl
 ##--------------------------------------------------------------------##
 ##--- Control supervision of applications run with callgrind       ---##
 ##---                                            callgrind_control ---##
 #
 #  You should have received a copy of the GNU General Public License
 #  along with this program; if not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+use warnings;
+
 use File::Basename;
 
 # vgdb_exe will be set to a vgdb found 'near' the callgrind_control file
This page took 0.035747 seconds and 5 git commands to generate.