From 6be7d3dab6a206d26d1845e3791eaf26be1be72f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 8 Mar 2011 09:28:17 -0800 Subject: [PATCH] * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not deduce are never used uninitialized. --- src/ChangeLog | 3 +++ src/cm.c | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 3375d985a41..477e74483e6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -82,6 +82,9 @@ * bidi.c (bidi_check_type): Now static, since it's not used elsewhere. (BIDI_BOB): Remove unused macro. + * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not + deduce are never used uninitialized. + 2011-03-06 Chong Yidong * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06 diff --git a/src/cm.c b/src/cm.c index d4aedad6db4..af4116f3fec 100644 --- a/src/cm.c +++ b/src/cm.c @@ -330,7 +330,7 @@ cmgoto (struct tty_display_info *tty, int row, int col) llcost, relcost, directcost; - int use; + int use IF_LINT (= 0); char *p, *dcm; @@ -460,4 +460,3 @@ Wcm_init (struct tty_display_info *tty) return - 2; return 0; } - -- 2.39.5