patch to clear type mismatch warning in libiberty
Weiwen Liu
liu@hepunix.physics.yale.edu
Thu Sep 11 13:20:00 GMT 1997
Hi,
The following patch clears type mismatch warning in libiberty. It add
#include <string.h>
to files that need it.
Thu Sep 11 15:20:37 1997 Weiwen Liu <liu@hepunix.physics.yale.edu>
* choose-temp.c: Add '#include <string.h>'.
* getopt.c: Ditto.
* xstrdup.c: Ditto.
*** choose-temp.c.~1~ Thu Aug 21 18:57:43 1997
--- choose-temp.c Thu Sep 11 15:11:47 1997
***************
*** 34,39 ****
--- 34,40 ----
#endif
#include <stdio.h> /* May get P_tmpdir. */
+ #include <string.h>
#ifdef IN_GCC
#include "config.h"
*** getopt.c.~1~ Thu Aug 21 18:57:44 1997
--- getopt.c Thu Sep 11 15:12:59 1997
***************
*** 53,58 ****
--- 53,59 ----
#endif
#include <stdio.h>
+ #include <string.h>
/* Comment out all this code if we are using the GNU C Library, and are not
actually compiling the library itself. This code is part of the GNU C
*** xstrdup.c.~1~ Thu Aug 21 18:57:48 1997
--- xstrdup.c Thu Sep 11 15:07:33 1997
***************
*** 4,9 ****
--- 4,10 ----
#include "ansidecl.h"
#include "libiberty.h"
+ #include <string.h>
char *
xstrdup (s)
More information about the Gcc
mailing list