From a62ddc6eddb01c0a1748cbc20ccfabbbdcaba3d0 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Sat, 22 Feb 2020 09:43:15 +0100 Subject: [PATCH] std.cfg: Added -tag to isblank() function arg. --- cfg/std.cfg | 1 + test/cfg/std.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/cfg/std.cfg b/cfg/std.cfg index 7e5ecefc3..a0b87b589 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -2557,6 +2557,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun + 0:255 diff --git a/test/cfg/std.c b/test/cfg/std.c index 34672ea14..4e125199a 100644 --- a/test/cfg/std.c +++ b/test/cfg/std.c @@ -3986,6 +3986,14 @@ bool invalidFunctionArgBool_isprint(bool b, int c) return isprint(c != 0); } +bool invalidFunctionArgBool_isblank(bool b, int c) +{ + // cppcheck-suppress invalidFunctionArgBool + (void)isblank(b); + // cppcheck-suppress invalidFunctionArgBool + return isblank(c != 0); +} + bool invalidFunctionArgBool_ispunct(bool b, int c) { // cppcheck-suppress invalidFunctionArgBool