This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[PATCH] Re: Insight -Werrors
- From: Keith Seitz <keiths at redhat dot com>
- To: Andrew Cagney <ac131313 at redhat dot com>
- Cc: insight at sources dot redhat dot com
- Date: Wed, 4 Dec 2002 08:20:52 -0800 (PST)
- Subject: [PATCH] Re: Insight -Werrors
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"