[prev in list] [next in list] [prev in thread] [next in thread]
List: coreutils-bug
Subject: quotearg minor fix to pacify gcc -Wswitch-default
From: Paul Eggert <eggert () CS ! UCLA ! EDU>
Date: 2006-01-22 8:51:35
Message-ID: 87k6csr6g8.fsf () penguin ! cs ! ucla ! edu
[Download RAW message or body]
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 <eggert@cs.ucla.edu>
* 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;
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic