Fixed #2309 (cppcheck-suppress issue because of path slash/backslash)
Internally we are using forward-slash and only convert to backslash for Windows output. For suppressing we must use internal forward-slash format of paths.
This commit is contained in:
parent
5ac9a7eaa7
commit
ac8eb30d68
|
@ -391,7 +391,7 @@ void CppCheck::reportErr(const ErrorLogger::ErrorMessage &msg)
|
|||
unsigned int line(0);
|
||||
if (!msg._callStack.empty())
|
||||
{
|
||||
file = msg._callStack.back().getfile();
|
||||
file = msg._callStack.back().getfile(false);
|
||||
line = msg._callStack.back().line;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue