diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-06-22 08:50:51 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-06-22 08:50:51 +0000 |
commit | 9855ac52a4d52515ecdfb6e5ddb5a3d7588f920f (patch) | |
tree | 79617037dc40c96c229c8820713e2b3ff5390d46 /Build/source/texk/kpathsea | |
parent | 0f0f3216e5e86665766b196c504d2d1764d30252 (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')
-rw-r--r-- | Build/source/texk/kpathsea/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/getopt.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog index bdf4b723279..43071eb3504 100644 --- a/Build/source/texk/kpathsea/ChangeLog +++ b/Build/source/texk/kpathsea/ChangeLog @@ -1,3 +1,8 @@ +2009-06-22 Peter Breitenlohner <peb@mppmu.mpg.de> + + * getopt.c (_getopt_internal): + explicit braces to avoid ambiguous 'else'. + 2009-06-19 Peter Breitenlohner <peb@mppmu.mpg.de> * Makefile.am: enable compiler warnings. 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); |