DanielVanNoord / open-phd-guiding

Automatically exported from code.google.com/p/open-phd-guiding
0 stars 0 forks source link

variable queueError set but not used #303

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Building svn sources with gcc-4.7.3 gives me this error:

Building CXX object CMakeFiles/phd2.dir/worker_thread.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++  -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 
-D__WXGTK__  -DNDEBUG -march=amdfam10 -O2 -pipe -ggdb  -pthread -Wall -Werror 
-DSIMULATOR -isystem /usr/lib64/wx/include/gtk2-unicode-3.0 -isystem 
/usr/include/wx-3.0 
-I/var/tmp/portage/sci-astronomy/open-phd-guiding-2.9999/work/open-phd-guiding-2
.9999    -o CMakeFiles/phd2.dir/worker_thread.cpp.o -c 
/var/tmp/portage/sci-astronomy/open-phd-guiding-2.9999/work/open-phd-guiding-2.9
999/worker_thread.cpp
/usr/bin/x86_64-pc-linux-gnu-g++  -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 
-D__WXGTK__  -DNDEBUG -march=amdfam10 -O2 -pipe -ggdb  -pthread -Wall -Werror 
-DSIMULATOR -isystem /usr/lib64/wx/include/gtk2-unicode-3.0 -isystem 
/usr/include/wx-3.0 
-I/var/tmp/portage/sci-astronomy/open-phd-guiding-2.9999/work/open-phd-guiding-2
.9999    -o CMakeFiles/phd2.dir/testguide.cpp.o -c 
/var/tmp/portage/sci-astronomy/open-phd-guiding-2.9999/work/open-phd-guiding-2.9
999/testguide.cpp
/usr/bin/x86_64-pc-linux-gnu-g++  -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 
-D__WXGTK__  -DNDEBUG -march=amdfam10 -O2 -pipe -ggdb  -pthread -Wall -Werror 
-DSIMULATOR -isystem /usr/lib64/wx/include/gtk2-unicode-3.0 -isystem 
/usr/include/wx-3.0 
-I/var/tmp/portage/sci-astronomy/open-phd-guiding-2.9999/work/open-phd-guiding-2
.9999    -o CMakeFiles/phd2.dir/usImage.cpp.o -c 
/var/tmp/portage/sci-astronomy/open-phd-guiding-2.9999/work/open-phd-guiding-2.9
999/usImage.cpp
Building CXX object CMakeFiles/phd2.dir/target.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++  -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 
-D__WXGTK__  -DNDEBUG -march=amdfam10 -O2 -pipe -ggdb  -pthread -Wall -Werror 
-DSIMULATOR -isystem /usr/lib64/wx/include/gtk2-unicode-3.0 -isystem 
/usr/include/wx-3.0 
-I/var/tmp/portage/sci-astronomy/open-phd-guiding-2.9999/work/open-phd-guiding-2
.9999    -o CMakeFiles/phd2.dir/target.cpp.o -c 
/var/tmp/portage/sci-astronomy/open-phd-guiding-2.9999/work/open-phd-guiding-2.9
999/target.cpp
/var/tmp/portage/sci-astronomy/open-phd-guiding-2.9999/work/open-phd-guiding-2.9
999/worker_thread.cpp: In member function ‘void 
WorkerThread::EnqueueMessage(const WorkerThread::WORKER_THREAD_REQUEST&)’:
/var/tmp/portage/sci-astronomy/open-phd-guiding-2.9999/work/open-phd-guiding-2.9
999/worker_thread.cpp:52:25: error: variable ‘queueError’ set but not used 
[-Werror=unused-but-set-variable]
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/phd2.dir/worker_thread.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory 
`/var/tmp/portage/sci-astronomy/open-phd-guiding-2.9999/work/open-phd-guiding-2.
9999_build'
make[1]: *** [CMakeFiles/phd2.dir/all] Error 2
make[1]: Leaving directory 
`/var/tmp/portage/sci-astronomy/open-phd-guiding-2.9999/work/open-phd-guiding-2.
9999_build'
make: *** [all] Error 2

Original issue reported on code.google.com by ctibor.b...@gmail.com on 5 Jul 2014 at 9:36

GoogleCodeExporter commented 9 years ago
I cannot reproduce this. I'm on Ubuntu with gcc version 4.8.1. you're on 
Gentoo, right ?

Also; 

 50 void WorkerThread::EnqueueMessage(const WORKER_THREAD_REQUEST& message)
 51 {
 52     wxMessageQueueError queueError;
 53 
 54     if (message.request == REQUEST_EXPOSE)
 55     {
 56         queueError = m_lowPriorityQueue.Post(message);
 57     }
 58     else
 59     {
 60         queueError = m_highPriorityQueue.Post(message);
 61     }

queueError gets assigned. I'm on SVN Revision: 916 .
Does this issue still occur for you on r916 ?

Original comment by h...@dse.nl on 11 Jul 2014 at 9:16

GoogleCodeExporter commented 9 years ago

Original comment by andy.gal...@gmail.com on 16 Jul 2014 at 5:42

GoogleCodeExporter commented 9 years ago
we cannot reproduce this and did not receive response to our request for 
information over a month ago. marking closed

Original comment by andy.gal...@gmail.com on 12 Aug 2014 at 7:17