[thread] warnings with CW 8.3

when building boost.thread (from public CVS / HEAD) with CW 8.3 i get the following warnings: ... cw-C++-action ..\..\..\bin\boost\libs\thread\build\libboost_thread.lib\cw\debug\ threading-multi\read_write_mutex.obj ### mwcc Compiler: # File: ..\src\read_write_mutex.cpp # ------------------------------------ # 934: } # Warning: ^ # return value expected ### mwcc Compiler: # 1163: } # Warning: ^ # return value expected ### mwcc Compiler: # 1247: if (woken = do_wake_all_readers()) # Warning: ^ # possible unwanted assignment ### mwcc Compiler: # 1253: if (woken = do_wake_writer()) # Warning: ^ # possible unwanted assignment ... Bertolt

Bertolt Mildner wrote:
when building boost.thread (from public CVS / HEAD) with CW 8.3 i get the following warnings:
.... cw-C++-action ...\..\..\bin\boost\libs\thread\build\libboost_thread.lib\cw\debug\ threading-multi\read_write_mutex.obj ### mwcc Compiler: # File: ..\src\read_write_mutex.cpp # ------------------------------------ # 934: } # Warning: ^ # return value expected ### mwcc Compiler: # 1163: } # Warning: ^ # return value expected
Neither of these appear to indicate a real problem; however, I've made a change that I hope will eliminate the warning. Let me know if it doesn't and I'll try again.
### mwcc Compiler: # 1247: if (woken = do_wake_all_readers()) # Warning: ^ # possible unwanted assignment ### mwcc Compiler: # 1253: if (woken = do_wake_writer()) # Warning: ^ # possible unwanted assignment
The assignments were intentional, but I should have known that putting them there would cause warnings on some compilers. I've moved the assignment, so these warnings should be fixed now. Mike

Bertolt Mildner wrote:
when building boost.thread (from public CVS / HEAD) with CW 8.3 i get
"Michael Glassford" <glassfordm@hotmail.com> schrieb im Newsbeitrag news:d4mp6e$7h3$1@sea.gmane.org... the
following warnings:
.... cw-C++-action ...\..\..\bin\boost\libs\thread\build\libboost_thread.lib\cw\debug\ threading-multi\read_write_mutex.obj ### mwcc Compiler: # File: ..\src\read_write_mutex.cpp # ------------------------------------ # 934: } # Warning: ^ # return value expected ### mwcc Compiler: # 1163: } # Warning: ^ # return value expected
Neither of these appear to indicate a real problem; however, I've made a change that I hope will eliminate the warning. Let me know if it doesn't and I'll try again.
No, it didn't. Sorry. Bertolt

Bertolt Mildner wrote:
"Michael Glassford" <glassfordm@hotmail.com> schrieb im Newsbeitrag news:d4mp6e$7h3$1@sea.gmane.org...
Bertolt Mildner wrote:
when building boost.thread (from public CVS / HEAD) with CW 8.3 i get
the
following warnings:
.... cw-C++-action ...\..\..\bin\boost\libs\thread\build\libboost_thread.lib\cw\debug\ threading-multi\read_write_mutex.obj ### mwcc Compiler: # File: ..\src\read_write_mutex.cpp # ------------------------------------ # 934: } # Warning: ^ # return value expected ### mwcc Compiler: # 1163: } # Warning: ^ # return value expected
Neither of these appear to indicate a real problem; however, I've made a change that I hope will eliminate the warning. Let me know if it doesn't and I'll try again.
No, it didn't. Sorry.
This should be fixed now, I hope. Mike

.... cw-C++-action ...\..\..\bin\boost\libs\thread\build\libboost_thread.lib\cw\debug\ threading-multi\read_write_mutex.obj ### mwcc Compiler: # File: ..\src\read_write_mutex.cpp # ------------------------------------ # 934: } # Warning: ^ # return value expected ### mwcc Compiler: # 1163: } # Warning: ^ # return value expected
Neither of these appear to indicate a real problem; however, I've made a change that I hope will eliminate the warning. Let me know if it doesn't and I'll try again.
No, it didn't. Sorry.
This should be fixed now, I hope.
Yup, it is. Thanks! Bertolt
participants (2)
-
Bertolt Mildner
-
Michael Glassford