Status: New
Owner: ----
New issue 2072 by [email protected]: unused variable in
src/platform-solaris.cc
http://code.google.com/p/v8/issues/detail?id=2072
Making on SmartOS (Solaris) gives:
../src/platform-solaris.cc: In member function 'void
v8::internal::Thread::Start()':
../src/platform-solaris.cc:490:19: error: variable 'attr_ptr' set but not
used [-Werror=unused-but-set-variable]
this fixed the/this problem for me
diff --git a/src/platform-solaris.cc b/src/platform-solaris.cc
index be8bbfc..6dcac9f 100644
--- a/src/platform-solaris.cc
+++ b/src/platform-solaris.cc
@@ -487,12 +487,10 @@ void Thread::set_name(const char* name) {
void Thread::Start() {
- pthread_attr_t* attr_ptr = NULL;
pthread_attr_t attr;
if (stack_size_ > 0) {
pthread_attr_init(&attr);
pthread_attr_setstacksize(&attr, static_cast<size_t>(stack_size_));
- attr_ptr = &attr;
}
pthread_create(&data_->thread_, NULL, ThreadEntry, this);
ASSERT(data_->thread_ != kNoThread);
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev