[sldev] -Werror?

Callum Lerwick seg at haxxed.com
Tue Jun 26 15:14:40 PDT 2007


Argh. Who added -Werror to the build flags? While that may be great for
upstream, more often than not us downstream packagers end up having to
remove it anyway. gcc versions differ widely in what warnings they give.

g++ -o x86_64-linux-client-release/llcommon/metaclass.os -c -g -pipe
-Wall -Wno-trigraphs -Wno-sign-compare -Werror -fexceptions
-fsigned-char -fno-strict-aliasing -ffast-math -fPIC
-DLL_MESA_HEADLESS=0 -DLL_MESA=0 -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -DLL_LINUX=1
-DAPPID=secondlife -DLL_SDL=1 -DLL_FMOD=0 -DLL_X11=1 -DLL_GTK=1
-DLL_ELFBIN=0 -DLL_LIBXUL_ENABLED=0 -DNDEBUG -DLL_RELEASE=1
-DLL_RELEASE_FOR_DOWNLOAD=1 -Illcommon -Illmath -Illwindow -Illaudio
-Illcharacter -Illdatabase -Illhavok -Illimage -Illinventory -Illmedia
-Illmessage -Illprimitive -Illrender -Illscene -Illui -Illvfs -Illwindow
-Illxml -Ilscript -I/builddir/build/BUILD/linden/libraries/include
-I/builddir/build/BUILD/linden/libraries/include/havok
-I/builddir/build/BUILD/linden/libraries/x86_64-linux/include
-I/usr/include/cairo -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0
-I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/include/SDL
x86_64-linux-client-release/llcommon/metaclass.cpp
cc1plus: warnings being treated as errors
x86_64-linux-client-release/llcommon/llsys.cpp: In static member
function 'static U32 LLOSInfo::getProcessVirtualSizeKB()':
x86_64-linux-client-release/llcommon/llsys.cpp:261: warning: ignoring
return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared
with attribute warn_unused_result
x86_64-linux-client-release/llcommon/llsys.cpp: In static member
function 'static U32 LLOSInfo::getProcessResidentSizeKB()':
x86_64-linux-client-release/llcommon/llsys.cpp:289: warning: ignoring
return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared
with attribute warn_unused_result
x86_64-linux-client-release/llcommon/llsys.cpp: In function 'BOOL
gunzip_file(const char*, const char*)':
x86_64-linux-client-release/llcommon/llsys.cpp:494: warning: ignoring
return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)',
declared with attribute warn_unused_result
distcc[8315] ERROR: compile
x86_64-linux-client-release/llcommon/llsys.cpp on localhost failed
scons: *** [x86_64-linux-client-release/llcommon/llsys.os] Error 1
scons: building terminated because of errors.
error: Bad exit status from /var/tmp/rpm-tmp.75410 (%build)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.secondlife.com/pipermail/sldev/attachments/20070626/cd9f4f79/attachment.pgp


More information about the SLDev mailing list