summaryrefslogtreecommitdiff
path: root/doc/scripts/gdoc
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-04-10 13:50:43 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-04-10 14:11:27 +0200
commit80e5bdd0f09110a00241d901067e1e457a17ec06 (patch)
treef6b9c6e99ac7756bf6d7872db9b582fa5c670591 /doc/scripts/gdoc
parent57555c75a8faf71bc7d664d73a2b9914ddb809d0 (diff)
downloadgnutls-80e5bdd0f09110a00241d901067e1e457a17ec06.tar.gz
remove perl warnings from scripts.
Diffstat (limited to 'doc/scripts/gdoc')
-rwxr-xr-xdoc/scripts/gdoc8
1 files changed, 3 insertions, 5 deletions
diff --git a/doc/scripts/gdoc b/doc/scripts/gdoc
index e79d3afd72..afd0802968 100755
--- a/doc/scripts/gdoc
+++ b/doc/scripts/gdoc
@@ -1,6 +1,4 @@
-eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
- & eval 'exec perl -wS "$0" $argv:q'
- if 0;
+#!/usr/bin/perl
## Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Simon Josefsson
## added -texinfo, -listfunc, -pkg-name
@@ -184,7 +182,7 @@ $blankline_man = "";
$type_struct, "\$1",
$type_param, "\$1" );
$blankline_text = "";
-
+my $lineprefix = "";
sub usage {
print "Usage: $0 [ -v ] [ -docbook | -html | -text | -man | -tex | -texinfo -listfunc ]\n";
@@ -746,7 +744,7 @@ sub dump_function {
# print STDERR " :> @args\n";
$type = join " ", @args;
- if ($parameters{$param} eq "" && $param != "void") {
+ if ((!defined($parameters{$param}) || $parameters{$param} eq "") && $param ne "void") {
$parameters{$param} = "-- undescribed --";
print STDERR "warning: $lineno: Function parameter '$param' not described in '$function_name'\n";
}