summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/getopt.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-06-22 08:50:51 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-06-22 08:50:51 +0000
commit9855ac52a4d52515ecdfb6e5ddb5a3d7588f920f (patch)
tree79617037dc40c96c229c8820713e2b3ff5390d46 /Build/source/texk/kpathsea/getopt.c
parent0f0f3216e5e86665766b196c504d2d1764d30252 (diff)
enable C compiler warnings (ObjC and C++ not yet)
git-svn-id: svn://tug.org/texlive/trunk@13877 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/getopt.c')
-rw-r--r--Build/source/texk/kpathsea/getopt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Build/source/texk/kpathsea/getopt.c b/Build/source/texk/kpathsea/getopt.c
index d32a4a0415f..a236e88fde8 100644
--- a/Build/source/texk/kpathsea/getopt.c
+++ b/Build/source/texk/kpathsea/getopt.c
@@ -649,6 +649,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
else
{
if (opterr)
+ {
if (argv[optind - 1][1] == '-')
/* --option */
fprintf (stderr,
@@ -659,6 +660,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
fprintf (stderr,
_("%s: option `%c%s' doesn't allow an argument\n"),
argv[0], argv[optind - 1][0], pfound->name);
+ }
nextchar += strlen (nextchar);