On 04/25/11 06:24 PM, Jeremy Huddleston wrote:
> Well I changed it to -Werror -Werror=attributes which I assume will produce
> the same results as well ... ?
Yes - for Sun cc, -W is used for passing arguments to specific phases
of the compilation, not for adjusting warnings.
It appears the equivalent for it would be -errwarn=E_ATTRIBUTE_UNKNOWN
Surprisingly, even though it's undocumented, that doesn't issue an
error for __attribute__((tls_model("initial-exec"))) , but for
__attribute__((breakme)) it says:
"/tmp/foo.c", line 3: attribute "breakme" is unknown, ignored
cc: acomp failed for /tmp/foo.c
so maybe it really is supported in the Studio compiler.
--
-Alan Coopersmith- [email protected]
Oracle Solaris Platform Engineering: X Window System
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel