I installed this into gnulib (and coreutils) after a Bison installer noted the issue. I'm not a big fan of -Wswitch-default in general but here the workaround is harmless.
2006-01-22 Paul Eggert <[EMAIL PROTECTED]> * quotearg.c (quotearg_buffer_restyled): Add "default: break;" to pacify gcc -Wswitch-default. --- quotearg.c 23 Sep 2005 04:15:13 -0000 1.47 +++ quotearg.c 22 Jan 2006 08:46:02 -0000 1.48 @@ -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, STORE ('\\'); STORE ('?'); break; + + default: + break; } break; @@ -454,6 +457,9 @@ quotearg_buffer_restyled (char *buffer, case '[': case '\\': case '^': case '`': case '|': goto use_shell_always_quoting_style; + + default: + break; } } _______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib