summaryrefslogtreecommitdiff
path: root/Build/source/texk/dviljk
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-12-10 08:24:20 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-12-10 08:24:20 +0000
commit21193f790612abde8be2f375ed4533334113e2bf (patch)
tree4c245c2e7c19e3944abd5337d0dc366fc958cfad /Build/source/texk/dviljk
parentf73a2eb90adc5243a671607709a1b37911353944 (diff)
Drop unused variables (gcc 4.6 -Wunused-but-set-cariable)
git-svn-id: svn://tug.org/texlive/trunk@28488 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dviljk')
-rw-r--r--Build/source/texk/dviljk/ChangeLog5
-rw-r--r--Build/source/texk/dviljk/dvi2xx.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/Build/source/texk/dviljk/ChangeLog b/Build/source/texk/dviljk/ChangeLog
index ed9cc7b7b03..bbaafc35539 100644
--- a/Build/source/texk/dviljk/ChangeLog
+++ b/Build/source/texk/dviljk/ChangeLog
@@ -1,3 +1,8 @@
+2012-12-07 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * dvi2xx.c: Drop unused variables (gcc-4.6 warning).
+ Cast anonymous enum to ValTyp.
+
2012-11-20 Peter Breitenlohner <peb@mppmu.mpg.de>
* Makefile.am: Avoid use of deprecated INCLUDES.
diff --git a/Build/source/texk/dviljk/dvi2xx.c b/Build/source/texk/dviljk/dvi2xx.c
index fcc11370791..c59c8d2408c 100644
--- a/Build/source/texk/dviljk/dvi2xx.c
+++ b/Build/source/texk/dviljk/dvi2xx.c
@@ -3760,7 +3760,7 @@ void DoSpecial(char *str, int n)
already about the problem. */
while ( (str = GetKeyStr(str, &k)) != NULL ) {
/* get all keyword-value pairs */
- if ( k.vt == None ) { /* no value */
+ if ( k.vt == (ValTyp) None ) { /* no value */
/* Single word might also be "comment", then ignore the rest */
if ( EQ(k.Key, "comment") )
return;
@@ -4240,9 +4240,7 @@ bool GetKeyVal(KeyWord *kw, KeyDesc tab[], int nt, int *tno)
/* compare strings, ignore case */
bool IsSame(const char *a, const char *b)
{
- const char *x, *y;
-
- for (x = a, y = b; *a; a++, b++)
+ for (; *a; a++, b++)
if ( tolower(*a) != tolower(*b) )
return( _FALSE );