On Mon, Jul 09, 2018 at 01:11:34PM +0200, Andreas Tille wrote: > patternset.cpp: In member function 'void patternset::CheckParams()': > patternset.cpp:187:10: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] > if(size < 0){ > ~~~~~^~~ > patternset.cpp:188:23: error: call of overloaded 'abs(uint32_t&)' is ambiguous > size = std::abs(size); As size is unsigned, checking if it's < 0 and calling abs if it is is dead code. No idea what did the author mean when writing this. -- WBR, wRAR
Attachment:
signature.asc
Description: PGP signature