]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(quotearg_buffer_restyled): Add "default: break;"
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 22 Jan 2006 08:46:54 +0000 (08:46 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 22 Jan 2006 08:46:54 +0000 (08:46 +0000)
to pacify gcc -Wswitch-default.

lib/ChangeLog
lib/quotearg.c

index 4579b4e3748ad1c21cdfd15c1cb3c035d0ee5c8e..0d6d28c747586562947795e9b05a4c4c1472442a 100644 (file)
@@ -1,3 +1,8 @@
+2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * quotearg.c (quotearg_buffer_restyled): Add "default: break;"
+       to pacify gcc -Wswitch-default.
+
 2006-01-17  Jim Meyering  <jim@meyering.net>
 
        Rewrite fts.c not to change the current working directory,
index 1d1b543957d5848bfe3d32955cb1a215c75ef7f2..113239fb14f06eb1c95c2eac76b2ef1be47bf8e8 100644 (file)
@@ -1,7 +1,7 @@
 /* quotearg.c - quote arguments for output
 
-   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2005 Free Software
-   Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2006 Free
+   Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -307,6 +307,9 @@ quotearg_buffer_restyled (char *buffer, size_t buffersize,
                    STORE ('\\');
                    STORE ('?');
                    break;
+
+                 default:
+                   break;
                  }
              break;
 
@@ -454,6 +457,9 @@ quotearg_buffer_restyled (char *buffer, size_t buffersize,
                                case '[': case '\\': case '^':
                                case '`': case '|':
                                  goto use_shell_always_quoting_style;
+
+                               default:
+                                 break;
                                }
                          }