# HG changeset patch # User Paul Eggert # Date 1137919562 0 # Node ID 29fdf7a22b20c57d90bebabccf23a250c907184e # Parent bc61a0c9a7500a3f54a95fcdb76b0001c670881b * quotearg.c (quotearg_buffer_restyled): Add "default: break;" to pacify gcc -Wswitch-default. diff --git a/lib/ChangeLog b/lib/ChangeLog --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2006-01-22 Paul Eggert + + * quotearg.c (quotearg_buffer_restyled): Add "default: break;" + to pacify gcc -Wswitch-default. + 2006-01-21 Sergey Poznyakoff * argp-help.c (usage_long_opt): Do not print DOC options. diff --git a/lib/quotearg.c b/lib/quotearg.c --- 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 @@ STORE ('\\'); STORE ('?'); break; + + default: + break; } break; @@ -454,6 +457,9 @@ case '[': case '\\': case '^': case '`': case '|': goto use_shell_always_quoting_style; + + default: + break; } }