Skip to content

Fix (gcc) warning about code doing if (uint < 0)

David Faure requested to merge work/dfaure/sourcemanager_api into master

src/SuppressionManager.cpp:121:67: warning: comparison of unsigned expression in ‘< 0’ is always false [-Wtype-limits] 121 | if (sm.getSpellingLineNumber(token.getLocation()) < 0) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~

No idea if this changed at some point in clang-llvm though (i.e. if this would break compatibility with older versions?)

Merge request reports