This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Fix warnings in libiberty/concat.c



The appended patch fixes these warnings:

../../../gcc/libiberty/concat.c: In function `concat':
../../../gcc/libiberty/concat.c:105: warning: implicit declaration of function `strlen'
../../../gcc/libiberty/concat.c:123: warning: implicit declaration of function `memcpy'

Bootstrapped/regtested on i686-linux.

Ok to commit?

2001-07-28  Andreas Jaeger  <aj@suse.de>

	* concat.c: Include "config.h".

============================================================
Index: libiberty/concat.c
--- libiberty/concat.c	2001/06/18 20:46:48	1.4
+++ libiberty/concat.c	2001/07/30 06:46:40
@@ -52,7 +52,9 @@
 	malloc returns.
 */
 
-
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 #include "ansidecl.h"
 #include "libiberty.h"
 #include <sys/types.h>		/* size_t */

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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