From: Paul Eggert Date: Tue, 8 Mar 2011 17:28:17 +0000 (-0800) Subject: * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~605^2^2~44 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6be7d3dab6a206d26d1845e3791eaf26be1be72f;p=emacs.git * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not deduce are never used uninitialized. --- 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; } -