From: Steve Peters Date: Fri, 26 May 2006 13:33:54 +0000 (+0000) Subject: Sun C on Linux doesn't complain about the attributes sprinkled X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2f7602ba356c0cc97fb57d8b3ad53130ef4b9bee;p=p5sagit%2Fp5-mst-13.2.git Sun C on Linux doesn't complain about the attributes sprinkled through the code in all cases, even though attributes are not supported. In some cases, however, it does. p4raw-id: //depot/perl@28309 --- diff --git a/hints/linux.sh b/hints/linux.sh index 8dbe32f..7f348ef 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -88,6 +88,15 @@ case "`${cc:-cc} -V 2>&1`" in optimize='-xO2' cccdlflags='-KPIC' lddlflags='-G -Bdynamic' + # Sun C doesn't support gcc attributes, but, in many cases, doesn't + # complain either. Not all cases, though. + d_attribute_format='undef' + d_attribute_malloc='undef' + d_attribute_nonnull='undef' + d_attribute_noreturn='undef' + d_attribute_pure='undef' + d_attribute_unused='undef' + d_attribute_warn_unused_result='undef' ;; esac