Closed Bug 646776 Opened 9 years ago Closed 9 years ago
compile errors caused by -Werror and current gcc versions
cc1plus: warnings being treated as errors /usr/src/packages/BUILD/mozilla/js/src/shell/js.cpp: In function 'void my_ErrorReporter(JSContext*, const char*, JSErrorReport*)': /usr/src/packages/BUILD/mozilla/js/src/shell/js.cpp:5320:53: error: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result /usr/src/packages/BUILD/mozilla/js/src/nanojit/Nativei386.h: At global scope: /usr/src/packages/BUILD/mozilla/js/src/nanojit/Nativei386.h:167:31: error: 'nanojit::ScratchRegs' defined but not used /usr/src/packages/BUILD/mozilla/js/src/nanojit/Nativei386.h:170:31: error: 'nanojit::AllowableByteRegs' defined but not used -Werror is also used in mozilla.org's Linux builds but gcc 4.3.3 seems to not complain about those. At least gcc 4.5 and above does.
The warnings-as-errors in bug 609532 has been turned off, which should fix this problem.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.