[PATCH v3] glx: Silence warnings when building with clang

Alan Coopersmith alan.coopersmith at oracle.com
Mon Apr 25 18:33:44 PDT 2011


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-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list