Status: New
Owner: ----

New issue 1453 by arturczajka: Failed to build with default settings (unused variables)
http://code.google.com/p/v8/issues/detail?id=1453

I checked out fresh version from the trunk (r8271), went as instruction said, tried to build with defaults and failed. Compiler says:

src/builtins.cc: In function 'v8::internal::MaybeObject* v8::internal::HandleApiCallAsFunctionOrConstructor(v8::internal::Isolate*, bool, v8::internal::{anonymous}::BuiltinArguments<(v8::internal::BuiltinExtraArguments)0u>)': src/builtins.cc:1205:18: error: variable 'receiver' set but not used [-Werror=unused-but-set-variable]
cc1plus: all warnings being treated as errors

So I thought I would just comment that line out, what could possibly go wrong? ;) Well... it appears there is another unused variable:

src/conversions.cc: In function 'double v8::internal::InternalStringToDouble(v8::internal::UnicodeCache*, Iterator, EndMark, int, double) [with Iterator = const char*, EndMark = const char*]':
src/conversions.cc:681:51:   instantiated from here
src/conversions.cc:465:8: error: variable 'fractional_part' set but not used [-Werror=unused-but-set-variable] src/conversions.cc: In function 'double v8::internal::InternalStringToDouble(v8::internal::UnicodeCache*, Iterator, EndMark, int, double) [with Iterator = const short unsigned int*, EndMark = const short unsigned int*]':
src/conversions.cc:686:51:   instantiated from here
src/conversions.cc:465:8: error: variable 'fractional_part' set but not used [-Werror=unused-but-set-variable] src/conversions.cc: In function 'double v8::internal::InternalStringToDouble(v8::internal::UnicodeCache*, Iterator, EndMark, int, double) [with Iterator = v8::internal::{anonymous}::StringInputBufferIterator, EndMark = v8::internal::{anonymous}::StringInputBufferIterator::EndMarker]':
src/conversions.cc:693:51:   instantiated from here
src/conversions.cc:465:8: error: variable 'fractional_part' set but not used [-Werror=unused-but-set-variable]
cc1plus: all warnings being treated as errors

IMHO one should be able to compile with default settings out of the box. The same error appeared when I tried the bleeding_edge branch.

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

Reply via email to