* Insight -Werrors
@ 2002-11-30 11:57 Andrew Cagney
2002-12-04 8:20 ` [PATCH] " Keith Seitz
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Cagney @ 2002-11-30 11:57 UTC (permalink / raw)
To: insight
FYI,
gdbtk-cmds.c:1600: warning: implicit declaration of function
`Tk_NameToWindow'
gdbtk-cmds.c:1601: warning: implicit declaration of function `Tk_MainWindow'
gdbtk-hooks.c:392: warning: implicit declaration of function `Tk_MainLoop'
when building configured with --enable-gdb-build-warnings=,-Werror
(which, for GDB, is pretty much the norm).
enjoy,
Andrew
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] Re: Insight -Werrors
2002-11-30 11:57 Insight -Werrors Andrew Cagney
@ 2002-12-04 8:20 ` Keith Seitz
0 siblings, 0 replies; 2+ messages in thread
From: Keith Seitz @ 2002-12-04 8:20 UTC (permalink / raw)
To: Andrew Cagney; +Cc: insight
On Sat, 30 Nov 2002, Andrew Cagney wrote:
> gdbtk-cmds.c:1600: warning: implicit declaration of function
> `Tk_NameToWindow'
> gdbtk-cmds.c:1601: warning: implicit declaration of function `Tk_MainWindow'
>
> gdbtk-hooks.c:392: warning: implicit declaration of function `Tk_MainLoop'
>
> when building configured with --enable-gdb-build-warnings=,-Werror
> (which, for GDB, is pretty much the norm).
I checked in the following patches which correct these problems.
Thanks for the pointer.
Keith
ChangeLog
2002-12-04 Keith Seitz <keiths@redhat.com>
* generic/gdbtk-hooks.c: Include tcl.h and tk.h to pull
in declarations for some Tk functions used in this file.
* generic/gdbtk-cmds.c: Likewise.
Patch
Index: generic/gdbtk-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-cmds.c,v
retrieving revision 1.63
diff -p -r1.63 gdbtk-cmds.c
*** generic/gdbtk-cmds.c 30 Nov 2002 17:49:21 -0000 1.63
--- generic/gdbtk-cmds.c 4 Dec 2002 16:20:36 -0000
***************
*** 40,45 ****
--- 40,47 ----
#define HAS_STDARG 1
#include <itcl.h>
+ #include <tcl.h>
+ #include <tk.h>
#include "guitcl.h"
#include "gdbtk.h"
Index: generic/gdbtk-hooks.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-hooks.c,v
retrieving revision 1.28
diff -p -r1.28 gdbtk-hooks.c
*** generic/gdbtk-hooks.c 27 Nov 2002 19:09:17 -0000 1.28
--- generic/gdbtk-hooks.c 4 Dec 2002 16:20:36 -0000
***************
*** 43,48 ****
--- 43,50 ----
#define HAS_STDARG 1
#include <itcl.h>
+ #include <tcl.h>
+ #include <tk.h>
#include "guitcl.h"
#include "gdbtk.h"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-12-04 16:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-30 11:57 Insight -Werrors Andrew Cagney
2002-12-04 8:20 ` [PATCH] " Keith Seitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).