summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-01-22 08:46:54 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-01-22 08:46:54 +0000
commit7c364b54fc9822a82f305846d349048293ac4783 (patch)
treebc1cd85d88f88fa67b4696e03ab4473ae4769a6f
parent3173cb27ddf0f34b4918a529b2df7bdb6872d71e (diff)
downloadcoreutils-7c364b54fc9822a82f305846d349048293ac4783.tar.xz
(quotearg_buffer_restyled): Add "default: break;"
to pacify gcc -Wswitch-default.
-rw-r--r--lib/ChangeLog5
-rw-r--r--lib/quotearg.c10
2 files changed, 13 insertions, 2 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 4579b4e37..0d6d28c74 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -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,
diff --git a/lib/quotearg.c b/lib/quotearg.c
index 1d1b54395..113239fb1 100644
--- a/lib/quotearg.c
+++ b/lib/quotearg.c
@@ -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;
}
}