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