CVS 19980521: PATCH for `limited scope' warning
Manfred Hollstein
manfred@s-direktnet.de
Fri May 22 09:10:00 GMT 1998
This small patch reduces the amount of warnings seen on
i586-linux-gnulibc1 by 18.
1998-05-22 Manfred Hollstein <manfred@s-direktnet.de>
* toplev.h (tree_node): Provide global declaration to avoid
`limited scope' warnings.
diff -rup -x CVS -x *.o -x *.info* -x *.html* -x *.elc -x *.dvi -x *.orig -x *~ -x version.el egcs-19980521.orig/gcc/toplev.h egcs-19980521/gcc/toplev.h
--- egcs-19980521.orig/gcc/toplev.h Fri May 15 11:04:45 1998
+++ egcs-19980521/gcc/toplev.h Fri May 22 11:26:07 1998
@@ -5,6 +5,10 @@
#ifndef __GCC_TOPLEV_H__
#define __GCC_TOPLEV_H__
+#ifdef __STDC__
+union tree_node;
+#endif
+
extern int count_error PROTO ((int));
extern void strip_off_ending PROTO ((char *, int));
extern void print_time PROTO ((char *, int));
More information about the Gcc-bugs
mailing list