Christian van der Leeden
unread,Aug 6, 2010, 5:35:33 AM8/6/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
MongoVersion: 1.6.0
g++ (Gentoo 4.3.4 p1.0, pie-10.1.5) 4.3.4
When compiling on Linux (Gentoo) I get an error saying that:
ignoring return value of 'size_t fwrite(const void*, size_t, size_t,
FILE*)', declared with attribute warn_unused_result
This error/warning is already in 1.5.x but there it is not reported as
error,
Fix:
remove the -Werror flag from SConstruct which will abort the compile
(or fix the problem of the warning in the first place)
Christian
--- mongodb-src-r1.6.0/SConstruct 2010-08-05 15:32:06.000000000 +0200
+++ mongodb-src-r1.6.0-r1/SConstruct 2010-08-06 11:20:46.000000000
+0200
@@ -745,8 +745,6 @@ else:
if nix:
env.Append( CPPFLAGS="-fPIC -fno-strict-aliasing -ggdb -pthread -
Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch" )
- if linux:
- env.Append( CPPFLAGS=" -Werror " )
env.Append( CXXFLAGS=" -Wnon-virtual-dtor " )
env.Append( LINKFLAGS=" -fPIC -pthread -rdynamic" )
env.Append( LIBS=[] )