libFS: Changes to 'master'

Alan Coopersmith alanc at kemper.freedesktop.org
Sun Dec 4 08:58:22 PST 2011


 src/FSlibInt.c |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 4ebfa48f74deb4f35490e02eeeb1e59ff56856ab
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Dec 4 08:54:38 2011 -0800

    Fix builds of FSlibInt.c with Solaris Studio compilers
    
    Required in order to build with Studio cc now that xorg-macros is
    setting -errwarn=E_FUNC_HAS_NO_RETURN_STMT since a bug in the Solaris
    system headers causes the noreturn attribute to not be correctly
    applied to the exit() prototype in <stdlib.h> when building with
    Studio instead of gcc.
    
    Otherwise compiler exits with error:
    "FSlibInt.c", line 976: Function has no return statement : _FSDefaultIOError
    
    Uses Studio-specific pragma instead of adding another exit() prototype
    with a noreturn attribute to avoid causing gcc to warn about having
    a redundant prototype for the exit() function.
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>



More information about the xorg-commit mailing list