Closed Bug 854096 Opened 12 years ago Closed 11 years ago

ipc/testshell/XPCShellEnvironment.cpp: Build failure with --enable-warnings-as-errors on gcc-4.7.2

Categories

(Testing :: XPCShell Harness, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: alex_y_xu, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0 Build ID: 20130313130725 Steps to reproduce: Build Firefox from mozilla-central (125917:ec68e56cafa3). Actual results: Build failure: 12:03.48 XPCShellEnvironment.cpp 12:05.18 /home/alex/mozilla/ipc/testshell/XPCShellEnvironment.cpp: In function 'void {anonymous}::ScriptErrorReporter(JSContext*, const char*, JSErrorReport*)': 12:05.18 /home/alex/mozilla/ipc/testshell/XPCShellEnvironment.cpp:162:51: error: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Werror=unused-result] 12:05.18 cc1plus: all warnings being treated as errors 12:05.18 12:05.19 In the directory /home/alex/mozilla/obj-x86_64-unknown-linux-gnu/ipc/testshell 12:05.19 The following command failed to execute properly: 12:05.19 /usr/bin/ccache g++ -o XPCShellEnvironment.o -c -I../../dist/stl_wrappers -I../../dist/system_wrappers -include /home/alex/mozilla/config/gcc_hidden.h -DMOZ_GLUE_IN_PROGRAM -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES -DSTATIC_EXPORTABLE_JS_API -DNO_NSPR_10_SUPPORT -DEXCLUDE_SKIA_DEPENDENCIES -DOS_POSIX=1 -DOS_LINUX=1 -I/home/alex/mozilla/js/xpconnect/shell -I/home/alex/mozilla/dom/base -I/home/alex/mozilla/ipc/chromium/src -I/home/alex/mozilla/ipc/glue -I../../ipc/ipdl/_ipdlheaders -I/home/alex/mozilla/ipc/testshell -I. -I../../dist/include -I/home/alex/mozilla/obj-x86_64-unknown-linux-gnu/dist/include/nspr -I/home/alex/mozilla/obj-x86_64-unknown-linux-gnu/dist/include/nss -fPIC -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Wsign-compare -Wno-invalid-offsetof -Wcast-align -march=native -O2 -pipe -march=native -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -std=gnu++0x -pthread -pipe -DNDEBUG -DTRIMMED -g -Os -freorder-blocks -fomit-frame-pointer -Werror -Wno-error=uninitialized -Wno-error=deprecated-declarations -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MF .deps/XPCShellEnvironment.o.pp /home/alex/mozilla/ipc/testshell/XPCShellEnvironment.cpp 12:05.19 gmake[6]: *** [XPCShellEnvironment.o] Error 1 Expected results: Successful build.
Bug 889714 removed ScriptErrorReporter() and hence the offending line as well: https://hg.mozilla.org/mozilla-central/rev/f248cb25d4db
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.