This is the mail archive of the gdb-patches@sourceware.cygnus.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]

PATCH : readline/shell/NULL




Patch applied, thanks.

Elena



Philippe De Muyter writes:
 > Symptom :
 > 
 > gcc -c -DHAVE_CONFIG_H   -I. -I/share/src/gnu/gdb-19990809/readline -I/usr/local/include -DRL_LIBRARY_VERSION='"4.0"' -g -O2 -W -Wall /share/src/gnu/gdb-19990809/readline/shell.c
 > /share/src/gnu/gdb-19990809/readline/shell.c: In function `get_home_dir':
 > /share/src/gnu/gdb-19990809/readline/shell.c:128: `NULL' undeclared (first use this function)
 > /share/src/gnu/gdb-19990809/readline/shell.c:128: (Each undeclared identifier is reported only once
 > /share/src/gnu/gdb-19990809/readline/shell.c:128: for each function it appears in.)
 > /share/src/gnu/gdb-19990809/readline/shell.c:125: warning: `home_dir' may be used uninitialized in this function
 > gnumake[1]: *** [shell.o] Error 1
 > 
 > Possible fix :
 > 
 > Thu Aug 12 00:11:02 1999  Philippe De Muyter  <phdm@macqel.be>
 > 
 > 	* shell.c (stdio.h): File included.
 > 
 > --- ./readline/shell.c	Fri Aug 13 13:13:40 1999
 > +++ ./readline/shell.c	Fri Aug 13 10:57:48 1999
 > @@ -27,6 +27,7 @@
 >  #endif
 >  
 >  #include <sys/types.h>
 > +#include <stdio.h>
 >  
 >  #if defined (HAVE_UNISTD_H)
 >  #  include <unistd.h>

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