]> git.eshelyaron.com Git - emacs.git/commitdiff
* coding.c (coding_set_source, coding_set_destination):
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Mar 2011 01:41:19 +0000 (17:41 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Mar 2011 01:41:19 +0000 (17:41 -0800)
Use "else { /* comment */ }" rather than "else /* comment */;"
for clarity, and to avoid gcc -Wempty-body warning.

src/ChangeLog
src/coding.c

index 02dc5390f38c323af512bc7e70eae459953b7b49..b88ff2ccbb4fcd8c662029f4157d0de7f1105b7e 100644 (file)
        does not deduce are never used uninitialized.
        (load_charset): Abort instead of using uninitialized var.
 
+       * coding.c (coding_set_source, coding_set_destination):
+       Use "else { /* comment */ }" rather than "else /* comment */;"
+       for clarity, and to avoid gcc -Wempty-body warning.
+
 2011-03-06  Chong Yidong  <cyd@stupidchicken.com>
 
        * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
index f6310369ad38b5921a2d42f2adcad5bb059aee63..cb13793daba6cfffc76d1f2e72d7fee06e7902d5 100644 (file)
@@ -1051,9 +1051,10 @@ coding_set_source (struct coding_system *coding)
       coding->source = SDATA (coding->src_object) + coding->src_pos_byte;
     }
   else
-    /* Otherwise, the source is C string and is never relocated
-       automatically.  Thus we don't have to update anything.  */
-    ;
+    {
+      /* Otherwise, the source is C string and is never relocated
+        automatically.  Thus we don't have to update anything.  */
+    }
 }
 
 static void
@@ -1079,9 +1080,10 @@ coding_set_destination (struct coding_system *coding)
        }
     }
   else
-    /* Otherwise, the destination is C string and is never relocated
-       automatically.  Thus we don't have to update anything.  */
-    ;
+    {
+      /* Otherwise, the destination is C string and is never relocated
+        automatically.  Thus we don't have to update anything.  */
+    }
 }