[test] Warnings in test_tools.ipp on CW

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[test] Warnings in test_tools.ipp on CW

Stefan Slapeta
In CW tests, I get a lot of warnings like this one:

### mwcc Compiler:
#      In: ..\boost\test\impl\test_tools.ipp
#    From: ..\libs\numeric\conversion\test\traits_test.cpp
# --------------------------------------------------------
#     161:         /* toler_descr = */       va_arg( args, char const* );
# Warning:                                                              ^
#   expression has no side effect
#   (included from:
#       C:\br\boost\boost\test\included\test_exec_monitor.hpp:26
#       C:\br\boost\libs\numeric\conversion\test\test_helpers.cpp:19
#       C:\br\boost\libs\numeric\conversion\test\traits_test.cpp:29)


...because of these lines:

         /* toler_descr = */       va_arg( args, char const* );


Maybe this expression could be changed to something else?

Thanks,

Stefan

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Reply | Threaded
Open this post in threaded view
|

Re: [test] Warnings in test_tools.ipp on CW

Gennadiy Rozental

>         /* toler_descr = */       va_arg( args, char const* );
>
>
> Maybe this expression could be changed to something else?

Like what? I need to skip one argument. Do you know an alternative way to do
this?

Gennadiy



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost