Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int pgFocus::GetOffset(double& offset)
- {
- MM_THREAD_GUARD_LOCK(&mutex);
- deviceInfo_.offset = offset;
- MM_THREAD_GUARD_UNLOCK(&mutex);
- return DEVICE_OK;
- }
- Strange code. Most likely this is what should be written here: offset = deviceInfo_.offset;
- This suspicious code was found in Micro-Manager project by PVS-Studio static code analyzer.
- Warning message is:
- V669 The 'offset' argument is a non-constant reference. The analyzer is unable to determine the position at which this argument is being modified. It is possible that the function contains an error. pgFocus.cpp 356
- 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