Comment #2 on issue 453 by spotrh: d8 uses fwrite, but does not handle the  
return
http://code.google.com/p/v8/issues/detail?id=453

g++ -o obj/release/d8.os -c -Wall -Werror -W -Wno-unused-parameter  
-Wnon-virtual-dtor
-pedantic -m32 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -fno-strict-aliasing -Wno-unused-parameter
-fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -fno-rtti
-fno-exceptions -Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor  
-pedantic
-m32 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions  
-fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -fno-strict-aliasing -Wno-unused-parameter
-fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -fPIC
-DV8_TARGET_ARCH_IA32 -DV8_SHARED -DENABLE_DEBUGGER_SUPPORT  
-DV8_NATIVE_REGEXP
-DENABLE_LOGGING_AND_PROFILING -Isrc src/d8.cc
cc1plus: warnings being treated as errors
src/d8.cc: In static member function 'static v8::Handle<v8::Value>
v8::Shell::Write(const v8::Arguments&)':
src/d8.cc:162: error: ignoring return value of 'size_t fwrite(const void*,  
size_t,
size_t, FILE*)', declared with attribute warn_unused_result

This is similar to an issue I reported on the chromium code which has  
already been fixed:
http://code.google.com/p/chromium/issues/detail?id=16948

The issue is being raised because I'm compiling with  
-Wp,-D_FORTIFY_SOURCE=2. More
information about FORTIFY_SOURCE can be found here:
http://www.redhat.com/magazine/009jul05/features/execshield/
http://fedoraproject.org/wiki/Security/Features#Compile_Time_Buffer_Checks_.28FORTIFY_SOURCE.29


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to