Travis: redundantCopy is not detected at the moment

This commit is contained in:
Daniel Marjamäki 2018-11-24 12:01:10 +01:00
parent ec89c7b1b8
commit b7ca9bdc8d
1 changed files with 4 additions and 3 deletions

View File

@ -135,6 +135,7 @@ void validCode()
WSACleanup();
wordInit = MAKEWORD(1, 2);
// cppcheck-suppress redundantAssignment
dwordInit = MAKELONG(1, 2);
// cppcheck-suppress redundantAssignment
wordInit = LOWORD(dwordInit);
@ -210,13 +211,13 @@ void bufferAccessOutOfBounds()
RtlCompareMemory(byteBuf, byteBuf2, 20);
// cppcheck-suppress bufferAccessOutOfBounds
RtlMoveMemory(byteBuf, byteBuf2, 20);
// cppcheck-suppress redundantCopy
// TODO cppcheck-suppress redundantCopy
// cppcheck-suppress bufferAccessOutOfBounds
MoveMemory(byteBuf, byteBuf2, 20);
// cppcheck-suppress redundantCopy
// TODO cppcheck-suppress redundantCopy
// cppcheck-suppress bufferAccessOutOfBounds
RtlCopyMemory(byteBuf, byteBuf2, 20);
// cppcheck-suppress redundantCopy
// TODO cppcheck-suppress redundantCopy
// cppcheck-suppress bufferAccessOutOfBounds
CopyMemory(byteBuf, byteBuf2, 20);
// cppcheck-suppress bufferAccessOutOfBounds