From e7cf939ab30851233156babb8964e5dc388139c9 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 11 Jul 2025 14:28:56 +0200 Subject: [PATCH] verify-synopsis.pl: enable warnings, fix one --- .github/scripts/verify-synopsis.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/scripts/verify-synopsis.pl b/.github/scripts/verify-synopsis.pl index aa26917946..1c6b00b60b 100755 --- a/.github/scripts/verify-synopsis.pl +++ b/.github/scripts/verify-synopsis.pl @@ -23,10 +23,13 @@ # ########################################################################### +use strict; +use warnings; + my @files = @ARGV; my $cfile = "test.c"; -if($files[0] eq "-h") { +if(!@files || $files[0] eq "-h") { print "Usage: verify-synopsis [man pages]\n"; exit; }