This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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"
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]