summaryrefslogtreecommitdiffstats
path: root/apps/progs.pl
diff options
context:
space:
mode:
authorBen Laurie <ben@links.org>2015-09-05 13:32:58 +0100
committerBen Laurie <ben@links.org>2015-09-11 04:51:55 +0100
commitdf2ee0e27d2db02660c1d15fe6a3e38be9df0a60 (patch)
tree8a86e360b2f0c811186bf7009f20d13b0c65b820 /apps/progs.pl
parent4c7103a5eee1dc472e256ac8818610c6e98a9a39 (diff)
Enable -Wmissing-variable-declarations and
-Wincompatible-pointer-types-discards-qualifiers (the latter did not require any code changes). Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'apps/progs.pl')
-rw-r--r--apps/progs.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/progs.pl b/apps/progs.pl
index 38e091e26e..065d954588 100644
--- a/apps/progs.pl
+++ b/apps/progs.pl
@@ -33,11 +33,13 @@ foreach (@ARGV) {
printf "extern int %s_main(int argc, char *argv[]);\n", $_;
}
-printf "\n#ifdef INCLUDE_FUNCTION_TABLE\n";
+print "\n";
+
foreach (@ARGV) {
printf "extern OPTIONS %s_options[];\n", $_;
}
-printf "FUNCTION functions[] = {\n";
+print "\n#ifdef INCLUDE_FUNCTION_TABLE\n";
+print "static FUNCTION functions[] = {\n";
foreach (@ARGV) {
$str=" { FT_general, \"$_\", ${_}_main, ${_}_options },\n";
if (/^s_/ || /^ciphers$/) {