summaryrefslogtreecommitdiff
path: root/lang/gcc295/files/patch-ar
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2002-12-31 23:00:02 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2002-12-31 23:00:02 +0000
commitd8d9471610a5e1a22d7fc837b4ecfa4fe429aca5 (patch)
tree107bf6d8a1cac0e179a2ccbde101ceea5599e7cb /lang/gcc295/files/patch-ar
parentEmergency update to 0.9.10.1: previous port version is incompatible (diff)
Attempt to Fix build on -CURRENT
Good bye 2002! Happy new year 2003! (CET) PR: 46483 Submitted by: Stefan Farfeleder <stefan@fafoe.dyndns.org>
Notes
Notes: svn path=/head/; revision=71999
Diffstat (limited to 'lang/gcc295/files/patch-ar')
-rw-r--r--lang/gcc295/files/patch-ar15
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/gcc295/files/patch-ar b/lang/gcc295/files/patch-ar
new file mode 100644
index 000000000000..7dbadfba7e60
--- /dev/null
+++ b/lang/gcc295/files/patch-ar
@@ -0,0 +1,15 @@
+--- gcc/cp/decl.c.orig Sat Jun 10 02:06:42 2000
++++ gcc/cp/decl.c Sun Dec 22 19:37:47 2002
+@@ -7119,10 +7119,12 @@
+ if (found_type > 1)
+ error ("multiple types in one declaration");
+
++#if 0
+ /* Inside a class, we might be in a friend or access declaration.
+ Until we have a good way of detecting the latter, don't warn. */
+ if (t == NULL_TREE && ! current_class_type)
+ pedwarn ("declaration does not declare anything");
++#endif
+
+ /* Check for an anonymous union. We're careful
+ accessing TYPE_IDENTIFIER because some built-in types, like