Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static size_type const embedded_block = 1;
- static size_type const first_block = 8;
- template
- <typename Key, typename T, typename HashCompare, typename A>
- void concurrent_hash_map<Key,T,HashCompare,A>::clear() {
- ...
- else if(s == embedded_block && embedded_block != first_block)
- ...
- }
- This suspicious code was found in FireFlies project by PVS-Studio static code analyzer.
- Warning message is:
- V560 A part of conditional expression is always true: embedded_block != first_block. Fireflies concurrent_hash_map.h 1299
- 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