]> git.eshelyaron.com Git - emacs.git/commitdiff
* cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Mar 2011 17:28:17 +0000 (09:28 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Mar 2011 17:28:17 +0000 (09:28 -0800)
deduce are never used uninitialized.

src/ChangeLog
src/cm.c

index 3375d985a41c6083464bf3cd0fb34bc2d318bbbc..477e74483e66d16df88cd43a647b425ae121b73e 100644 (file)
@@ -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  <cyd@stupidchicken.com>
 
        * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
index d4aedad6db4f3a9d11b4185011ef10cefe96afba..af4116f3fecc22f607a599e0d9b0db2b7f68bb2e 100644 (file)
--- 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;
 }
-