Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define WAVE_FORMAT_1M08 0x00000001
- #define WAVE_FORMAT_1S08 0x00000002
- ...
- void QAudioDeviceInfoInternal::updateLists()
- {
- ...
- DWORD fmt;
- ...
- if((fmt && WAVE_FORMAT_1M08)
- || (fmt && WAVE_FORMAT_1S08)
- || (fmt && WAVE_FORMAT_2M08)
- || (fmt && WAVE_FORMAT_2S08)
- || (fmt && WAVE_FORMAT_4M08)
- || (fmt && WAVE_FORMAT_4S08)
- #ifndef Q_OS_WINCE
- || (fmt && WAVE_FORMAT_48M08)
- || (fmt && WAVE_FORMAT_48S08)
- || (fmt && WAVE_FORMAT_96M08)
- || (fmt && WAVE_FORMAT_96S08)
- #endif
- )
- ...
- }
- This suspicious code was found in QT project by PVS-Studio static code analyzer.
- Warning message is:
- V560 A part of conditional expression is always true: 0x00000001. QtMultimedia qaudiodeviceinfo_win32_p.cpp 322
- 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