summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2006-05-26 13:33:54 +0000
committerSteve Peters <steve@fisharerojo.org>2006-05-26 13:33:54 +0000
commit2f7602ba356c0cc97fb57d8b3ad53130ef4b9bee (patch)
tree4dfd5bd323dfb7004156010919d1a11b5fb2527b
parentc3026122df2ea8c3b01e4d1278d0519e50eeab9a (diff)
downloadperl-2f7602ba356c0cc97fb57d8b3ad53130ef4b9bee.tar.gz
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
-rw-r--r--hints/linux.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/hints/linux.sh b/hints/linux.sh
index 8dbe32f4dd..7f348ef951 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