warnings in libiberty/testsuite/test-demangle.c
Andreas Jaeger
aj@suse.de
Sun Mar 7 10:08:00 GMT 2004
I just noticed the following warnings:
../../../libiberty/testsuite/test-demangle.c: In function `main':
../../../libiberty/testsuite/test-demangle.c:181: warning: implicit declaration
unction `strcspn'
../../../libiberty/testsuite/test-demangle.c:184: warning: implicit declaration
unction `strcmp'
../../../libiberty/testsuite/test-demangle.c:217: warning: implicit declaration
unction `strspn'
../../../libiberty/testsuite/test-demangle.c:261: warning: implicit declaration
unction `free'
Ok to commit the appended patch?
Btw. there's also this warning which seems to be true:
/cvs/binutils-ln/libiberty/testsuite/test-demangle.c: In function `main':
/cvs/binutils-ln/libiberty/testsuite/test-demangle.c:128: warning: `style' might be used uninitialized in this function
Andreas
2004-03-07 Andreas Jaeger <aj@suse.de>
* testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
prototypes.
============================================================
Index: libiberty/testsuite/test-demangle.c
--- testsuite/test-demangle.c 2 Jan 2004 21:11:34 -0000 1.4
+++ testsuite/test-demangle.c 7 Mar 2004 10:06:42 -0000
@@ -26,6 +26,12 @@
#include <stdio.h>
#include "libiberty.h"
#include "demangle.h"
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+#if HAVE_STDLIB_H
+# include <stdlib.h>
+#endif
struct line
{
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20040307/23af7ad6/attachment.sig>
More information about the Binutils
mailing list