diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-01-13 17:06:37 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-01-13 17:06:37 +0000 |
commit | 0f0cffd2518d3d8a2749d3772a0ef780163e2195 (patch) | |
tree | e9835f78b4765bf7eb7e5297228f54177e2528ce /gdb/doc | |
parent | f0312d395b830bea0f17a279ad1a6d8009c46db0 (diff) | |
download | fsf-binutils-gdb-0f0cffd2518d3d8a2749d3772a0ef780163e2195.zip fsf-binutils-gdb-0f0cffd2518d3d8a2749d3772a0ef780163e2195.tar.gz fsf-binutils-gdb-0f0cffd2518d3d8a2749d3772a0ef780163e2195.tar.bz2 |
2004-01-13 Andrew Cagney <cagney@redhat.com>
* configure.in: Update copyright year.
(build_warnings): Add -Wunused-label.
* configure: Re-generate.
2004-01-13 Andrew Cagney <cagney@redhat.com>
* gdbint.texinfo: Update copyright year.
(Coding): Add -Wunused-label to list of -Werror warnings.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdbint.texinfo | 21 |
2 files changed, 24 insertions, 2 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 6d8feda..dd942753 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2004-01-13 Andrew Cagney <cagney@redhat.com> + + * gdbint.texinfo: Update copyright year. + (Coding): Add -Wunused-label to list of -Werror warnings. + 2004-01-08 Jason Molenda <jmolenda@apple.com> Eli Zaretskii <eliz@is.elta.co.il> diff --git a/gdb/doc/gdbint.texinfo b/gdb/doc/gdbint.texinfo index 3170ce2..2cd88d9 100644 --- a/gdb/doc/gdbint.texinfo +++ b/gdb/doc/gdbint.texinfo @@ -8,7 +8,7 @@ @ifinfo This file documents the internals of the GNU debugger @value{GDBN}. -Copyright 1990,1991,1992,1993,1994,1996,1998,1999,2000,2001,2002,2003 +Copyright 1990,1991,1992,1993,1994,1996,1998,1999,2000,2001,2002,2003,2004 Free Software Foundation, Inc. Contributed by Cygnus Solutions. Written by John Gilmore. Second Edition by Stan Shebs. @@ -48,7 +48,7 @@ Free Documentation License''. @vskip 0pt plus 1filll Copyright @copyright{} 1990,1991,1992,1993,1994,1996,1998,1999,2000,2001, - 2002, 2003 Free Software Foundation, Inc. + 2002, 2003, 2004 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or @@ -5132,6 +5132,23 @@ This warning includes uses of the assignment operator within an @item -Wpointer-arith @item -Wuninitialized + +@item -Wunused-label +This warning has the additional benefit of detecting the absence of the +@code{case} reserved word in a switch statement: +@smallexample +enum @{ FD_SCHEDULED, NOTHING_SCHEDULED @} sched; +@dots{} +switch (sched) + @{ + case FD_SCHEDULED: + @dots{}; + break; + NOTHING_SCHEDULED: + @dots{}; + break; + @} +@end smallexample @end table @emph{Pragmatics: Due to the way that @value{GDBN} is implemented most |