diff options
author | Steve Peters <steve@fisharerojo.org> | 2006-05-26 13:33:54 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2006-05-26 13:33:54 +0000 |
commit | 2f7602ba356c0cc97fb57d8b3ad53130ef4b9bee (patch) | |
tree | 4dfd5bd323dfb7004156010919d1a11b5fb2527b | |
parent | c3026122df2ea8c3b01e4d1278d0519e50eeab9a (diff) | |
download | perl-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.sh | 9 |
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 |