This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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]

Re: bugfix gdb5.0/insight5.0


> On Fri, Dec 07, 2001 at 10:21:30AM +0100, Jan Van Belle wrote:
> 
> 
>> for those compiling for target arm-elf, I have a small bugfix at
>> compile-time.
>> 
>> remove: struct tm lt;
>> 
>> in two functions. (openLog() and closeLog() or something. It are the
>> first two functions in the file).
>> 
>> in file: xxx/xxx5.0/gdb/rdi-share/devsw.c
>> 
>> Otherwise I got: struct tm : size not known.
>> struct tm is declared in the two functions but not called in any way...
> 
> 
> I see time.h was included a while back to get rid of the
> warning, but it looks like Mr. Van Belle is right, the stuct is
> never used, so both the declaration and the include of time.h
> should be removed.


Almost, <time.h> is also needed for time_t and time().

Since no one else moved on this, I took the liberty of removing the two 
two struct decls.

enjoy,
Andrew
2002-01-20  Andrew Cagney  <ac131313@redhat.com>

	* rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
	(closeLogFile): Ditto.

Index: rdi-share/devsw.c
===================================================================
RCS file: /cvs/src/src/gdb/rdi-share/devsw.c,v
retrieving revision 1.2
diff -p -r1.2 devsw.c
*** devsw.c	2001/05/03 13:41:17	1.2
--- devsw.c	2002/01/20 22:43:34
*************** static int angelDebugLogEnable = 0;
*** 37,43 ****
  static void openLogFile ()
  {
    time_t t;
-   struct tm lt;
    
    if (angelDebugFilename == NULL || *angelDebugFilename =='\0')
      return;
--- 37,42 ----
*************** static void openLogFile ()
*** 67,73 ****
  static void closeLogFile (void)
  {
    time_t t;
-   struct tm lt;
    
    if (!angelDebugLogFile)
      return;
--- 66,71 ----

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