From beb72c2583c4777b806dd1766edf3e36a080755a Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Thu, 2 Feb 2017 15:53:52 +0100 Subject: [PATCH] Revert changes from 9cb0941df28e008bde5af080f42867341f9c4c68. --- cfg/std.cfg | 1 - test/cfg/std.c | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cfg/std.cfg b/cfg/std.cfg index 2ebd2c42d..fad093880 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -1058,7 +1058,6 @@ false - diff --git a/test/cfg/std.c b/test/cfg/std.c index 032b51f52..0fea8bef0 100644 --- a/test/cfg/std.c +++ b/test/cfg/std.c @@ -48,12 +48,12 @@ void bufferAccessOutOfBounds(void) // cppcheck-suppress bufferAccessOutOfBounds // cppcheck-suppress redundantCopy strncpy(a,"abcde",6); - (void)fread(a,1,5,stdin); + fread(a,1,5,stdin); // cppcheck-suppress bufferAccessOutOfBounds - (void)fread(a,1,6,stdin); + fread(a,1,6,stdin); fwrite(a,1,5,stdout); // cppcheck-suppress bufferAccessOutOfBounds - (void)fread(a,1,6,stdout); + fread(a,1,6,stdout); } // memory leak