]> Savannah Git Hosting - gnulib.git/commitdiff
quotearg: fix compilation failure due to FALLTHROUGH misuse
authorJim Meyering <meyering@fb.com>
Fri, 26 May 2017 04:25:37 +0000 (21:25 -0700)
committerJim Meyering <meyering@fb.com>
Fri, 26 May 2017 04:26:53 +0000 (21:26 -0700)
* lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
macro back to /* fall through */ comment.  The macro can apply only
to a following case statement.  Reported by Assaf Gordon.

ChangeLog
lib/quotearg.c

index 3e78d5a0fe9ba52d8e492e6344a0b89feeae5c39..2252a4a23e1a2551769ccb28c367f5b958984581 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-05-25  Jim Meyering  <meyering@fb.com>
+
+       quotearg: fix compilation failure due to FALLTHROUGH misuse
+       * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
+       macro back to /* fall through */ comment.  The macro can apply only
+       to a following case statement.  Reported by Assaf Gordon.
+
 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
 
        intprops: port to recent icc
index f1bdf317a3043671d9d41c796f15179260d64912..06172c1939b87060fd76aa6851da08beb3ff45b2 100644 (file)
@@ -513,7 +513,7 @@ quotearg_buffer_restyled (char *buffer, size_t buffersize,
           if (quoting_style == shell_always_quoting_style
               && elide_outer_quotes)
             goto force_outer_quoting_style;
-          FALLTHROUGH;
+          /* fall through */
         c_escape:
           if (backslash_escapes)
             {