Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch/rfc; rfa:doco] Add -Wunused-function to -Werror list
@ 2004-02-12 18:52 Andrew Cagney
  2004-02-15 23:28 ` Andrew Cagney
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Cagney @ 2004-02-12 18:52 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 165 bytes --]

Hello,

This finally adds the -Wunused-function warning to the list of warnings 
enforced with -Werror.  It also mentions it in the doco.

comments, doco ok?
Andrew

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 1428 bytes --]

2004-02-12  Andrew Cagney  <cagney@redhat.com>

	* configure.in (build_warnings): Add -Wunused-function.
	* configure: Re-generate.

Index: doc/ChangeLog
2004-02-12  Andrew Cagney  <cagney@redhat.com>

	* gdbint.texinfo (Coding): Mention -Wunused-function.

Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.144
diff -u -r1.144 configure.in
--- configure.in	8 Feb 2004 17:53:08 -0000	1.144
+++ configure.in	12 Feb 2004 18:49:08 -0000
@@ -1008,7 +1008,7 @@
 # gdb/doc/gdbint.texinfo.
 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
--Wunused-label"
+-Wunused-label -Wunused-function"
 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
 # -Wunused-function -Wunused-variable -Wunused-value
 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
Index: doc/gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.185
diff -u -r1.185 gdbint.texinfo
--- doc/gdbint.texinfo	12 Feb 2004 17:46:40 -0000	1.185
+++ doc/gdbint.texinfo	12 Feb 2004 18:49:10 -0000
@@ -5154,6 +5154,8 @@
     break;
   @}
 @end smallexample
+
+@item -Wunused-function
 @end table
 
 @emph{Pragmatics: Due to the way that @value{GDBN} is implemented most

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch/rfc; rfa:doco] Add -Wunused-function to -Werror list
  2004-02-12 18:52 [patch/rfc; rfa:doco] Add -Wunused-function to -Werror list Andrew Cagney
@ 2004-02-15 23:28 ` Andrew Cagney
  2004-02-16 10:09   ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Cagney @ 2004-02-15 23:28 UTC (permalink / raw)
  To: Eli Zaretskii, gdb-patches

[-- Attachment #1: Type: text/plain, Size: 489 bytes --]

> Hello,
> 
> This finally adds the -Wunused-function warning to the list of warnings enforced with -Werror.  It also mentions it in the doco.

I've checked in the config change, Eli, how's the doco?

Andrew


> 2004-02-12  Andrew Cagney  <cagney@redhat.com>
> 
> 	* configure.in (build_warnings): Add -Wunused-function.
> 	* configure: Re-generate.
> 
> Index: doc/ChangeLog
> 2004-02-12  Andrew Cagney  <cagney@redhat.com>
> 
> 	* gdbint.texinfo (Coding): Mention -Wunused-function.
> 


[-- Attachment #2: mailbox-message://ac131313@movemail/fsf/gdb/patches#637159 --]
[-- Type: message/rfc822, Size: 3788 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 165 bytes --]

Hello,

This finally adds the -Wunused-function warning to the list of warnings 
enforced with -Werror.  It also mentions it in the doco.

comments, doco ok?
Andrew

[-- Attachment #2.1.2: diffs --]
[-- Type: text/plain, Size: 1428 bytes --]

2004-02-12  Andrew Cagney  <cagney@redhat.com>

	* configure.in (build_warnings): Add -Wunused-function.
	* configure: Re-generate.

Index: doc/ChangeLog
2004-02-12  Andrew Cagney  <cagney@redhat.com>

	* gdbint.texinfo (Coding): Mention -Wunused-function.

Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.144
diff -u -r1.144 configure.in
--- configure.in	8 Feb 2004 17:53:08 -0000	1.144
+++ configure.in	12 Feb 2004 18:49:08 -0000
@@ -1008,7 +1008,7 @@
 # gdb/doc/gdbint.texinfo.
 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
--Wunused-label"
+-Wunused-label -Wunused-function"
 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
 # -Wunused-function -Wunused-variable -Wunused-value
 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
Index: doc/gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.185
diff -u -r1.185 gdbint.texinfo
--- doc/gdbint.texinfo	12 Feb 2004 17:46:40 -0000	1.185
+++ doc/gdbint.texinfo	12 Feb 2004 18:49:10 -0000
@@ -5154,6 +5154,8 @@
     break;
   @}
 @end smallexample
+
+@item -Wunused-function
 @end table
 
 @emph{Pragmatics: Due to the way that @value{GDBN} is implemented most

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch/rfc; rfa:doco] Add -Wunused-function to -Werror list
  2004-02-15 23:28 ` Andrew Cagney
@ 2004-02-16 10:09   ` Eli Zaretskii
  2004-02-16 18:20     ` Andrew Cagney
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2004-02-16 10:09 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb-patches

> Date: Sun, 15 Feb 2004 18:27:59 -0500
> From: Andrew Cagney <cagney@gnu.org>
> 
> I've checked in the config change, Eli, how's the doco?

Sorry, missed your original message.  The gdbint.texinfo patch is
okay.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch/rfc; rfa:doco] Add -Wunused-function to -Werror list
  2004-02-16 10:09   ` Eli Zaretskii
@ 2004-02-16 18:20     ` Andrew Cagney
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Cagney @ 2004-02-16 18:20 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: gdb-patches

>> Date: Sun, 15 Feb 2004 18:27:59 -0500
>> From: Andrew Cagney <cagney@gnu.org>
>> 
>> I've checked in the config change, Eli, how's the doco?
> 
> 
> Sorry, missed your original message.  The gdbint.texinfo patch is
> okay.

Thanks, committed.

Andrew



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-02-16 18:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-12 18:52 [patch/rfc; rfa:doco] Add -Wunused-function to -Werror list Andrew Cagney
2004-02-15 23:28 ` Andrew Cagney
2004-02-16 10:09   ` Eli Zaretskii
2004-02-16 18:20     ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox