On 04/25/11 06:33 PM, Alan Coopersmith wrote:
> 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

Also, just -errwarn works, and thats what the XORG_CWARNFLAGS macro sticks
in STRICT_CFLAGS for the Sun compiler, so maybe:

        AC_REQUIRE([XORG_CWARNFLAGS])

[...]

        if test "x$GCC" = xyes ; then
                CFLAGS="$CFLAGS -Werror=unknown-attributes"
        else
                CFLAGS="$CFLAGS $STRICT_CFLAGS"
        fi

-- 
        -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

Reply via email to