This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
g++ 4.0 supports __attribute__((unused))
authorLukas Mai <l.mai@web.de>
Mon, 6 Nov 2017 18:57:08 +0000 (19:57 +0100)
committerLukas Mai <l.mai@web.de>
Mon, 6 Nov 2017 18:57:08 +0000 (19:57 +0100)
perl.h

diff --git a/perl.h b/perl.h
index 00f3fe8..44b9805 100644 (file)
--- a/perl.h
+++ b/perl.h
 #endif
 
 #ifndef PERL_UNUSED_DECL
-#  if defined(HASATTRIBUTE_UNUSED) && (!defined(__cplusplus) || (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)))
+#  if defined(HASATTRIBUTE_UNUSED) && (!defined(__cplusplus) || __GNUC__ >= 4)
 #    define PERL_UNUSED_DECL __attribute__unused__
 #  else
 #    define PERL_UNUSED_DECL