Change 28541 by [EMAIL PROTECTED] on 2006/07/11 07:55:21
Subject: [PATCH] Re: [perl #39634] gcc 3.3 has problems with
__attribute__((unused))
From: Andy Dougherty <[EMAIL PROTECTED]>
Date: Mon, 10 Jul 2006 13:16:27 -0400 (EDT)
Message-ID: <[EMAIL PROTECTED]>
Affected files ...
... //depot/perl/perl.h#707 edit
Differences ...
==== //depot/perl/perl.h#707 (text) ====
Index: perl/perl.h
--- perl/perl.h#706~28525~ 2006-07-10 04:28:24.000000000 -0700
+++ perl/perl.h 2006-07-11 00:55:21.000000000 -0700
@@ -2604,9 +2604,11 @@
# define HASATTRIBUTE_PURE
# endif
# if __GNUC__ == 3 && __GNUC_MINOR__ >= 4 || __GNUC__ > 3 /* 3.4 -> */
- /* This actually works for gcc-3.3, but not for g++-3.3. */
# define HASATTRIBUTE_UNUSED
# endif
+# if __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined(__cplusplus)
+# define HASATTRIBUTE_UNUSED /* gcc-3.3, but not g++-3.3. */
+# endif
# if __GNUC__ == 3 && __GNUC_MINOR__ >= 4 || __GNUC__ > 3 /* 3.4 -> */
# define HASATTRIBUTE_WARN_UNUSED_RESULT
# endif
End of Patch.