Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int
- ACE_TMAIN(int, ACE_TCHAR*[])
- {
- ....
- TEST_ASSERT(dsqp.service_cleanup_delay.sec = 4);
- TEST_ASSERT(dsqp.service_cleanup_delay.nanosec = 2000);
- TEST_ASSERT(dsqp.history_kind == KEEP_LAST_HISTORY_QOS);
- TEST_ASSERT(dsqp.history_depth == 172);
- TEST_ASSERT(dsqp.max_samples == 389);
- TEST_ASSERT(dsqp.max_instances == 102);
- TEST_ASSERT(dsqp.max_samples_per_instance == 20);
- ....
- }
- This suspicious code was found in OpenDDS project by PVS-Studio static code analyzer.
- Warning message is:
- V559 Suspicious assignment inside the condition expression of 'if' operator: dsqp.service_cleanup_delay.sec = 4. ut_parameterlistconverter.cpp 1295
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement