This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: Warning removal
- To: gcc-patches at gcc dot gnu dot org
- Subject: Patch: Warning removal
- From: RDBrown at mira dot net
- Date: Sat, 2 Dec 2000 11:05:42 +1100 (EST)
- Reply-To: RDBrown at mira dot net,RodneyBrown at mynd dot com
hppa2.0-hp-hpux10.20
1127/gcc/c-lex.c: In function `cb_ident':
1127/gcc/c-lex.c:223: warning: unused parameter `str'
-c ../../gcc-20001127/gcc/collect2.c
1127/gcc/collect2.c: In function `scan_libraries':
1127/gcc/collect2.c:2601: warning: unused variable `ch'
rs6000-ibm-aix4.2.0.0 (alpha-dec-osf4.0e provides prototypes)
1127/gcc/collect2.c: At top level:
1127/gcc/collect2.c:2684: warning: function declaration isn't a pr
ototype
1127/gcc/collect2.c: In function `scan_prog_file':
1127/gcc/collect2.c:2741: warning: implicit declaration of function `ldtbread'
1127/gcc/collect2.c:2849: warning: implicit declaration of function `ldclose'
2000-12-01 Rodney Brown <RodneyBrown@mynd.com>
* c-lex.c (cb_indent): Decorate `str' argument, unused on HP-UX.
* collect2.c (scan_libraries): Remove unused `ch'.
(COFF specific stuff): Prototype ldgetname. Declare and prototype
ldbtread and ldclose.
--- gcc/c-lex.c.orig Wed Nov 29 18:25:17 2000
+++ gcc/c-lex.c Thu Nov 30 11:23:27 2000
@@ -220,7 +220,7 @@ dump_time_statistics ()
static void
cb_ident (pfile, str)
cpp_reader *pfile ATTRIBUTE_UNUSED;
- const cpp_string *str;
+ const cpp_string *str ATTRIBUTE_UNUSED;
{
#ifdef ASM_OUTPUT_IDENT
if (! flag_no_ident)
--- gcc/collect2.c.orig Fri Dec 1 14:21:54 2000
+++ gcc/collect2.c Fri Dec 1 13:47:31 2000
@@ -2598,7 +2598,7 @@ scan_libraries (prog_name)
/* Read each line of ldd output. */
while (fgets (buf, sizeof buf, inf) != (char *) 0)
{
- int ch, ch2;
+ int ch2;
char *name, *end, *p = buf;
/* Extract names of libraries and add to list. */
@@ -2681,7 +2681,9 @@ scan_libraries (prog_name)
|| (HEADER (X).f_magic == 0757 && aix64_flag))
#endif
-extern char *ldgetname ();
+extern char *ldgetname PARAMS ((LDFILE *, GCC_SYMENT *));
+extern int ldtbread PARAMS ((LDFILE *, long, GCC_SYMENT *));
+extern int ldclose PARAMS ((LDFILE *));
/* COFF version to scan the name list of the loaded program for
the symbols g++ uses for static constructors and destructors.