From ed453d24daf4bba64063e73b683eaf63d320616b Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Fri, 4 Nov 2016 14:20:59 +0100 Subject: [PATCH] std.cfg: Added returnValue support for iswdigit(). --- cfg/std.cfg | 1 + test/cfg/std.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/cfg/std.cfg b/cfg/std.cfg index fe8c92150..f6d065fef 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -1600,6 +1600,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun false + arg1>=L'0' && arg1<=L'9' diff --git a/test/cfg/std.c b/test/cfg/std.c index 20a9125ba..9f67b29e7 100644 --- a/test/cfg/std.c +++ b/test/cfg/std.c @@ -3722,6 +3722,11 @@ void valueFlow(void) // cppcheck-suppress knownConditionTrueFalse AssertAlwaysTrue(iswblank(w0) == 0); + // cppcheck-suppress knownConditionTrueFalse + AssertAlwaysTrue(iswdigit(w0) == 0); + // cppcheck-suppress knownConditionTrueFalse + AssertAlwaysTrue(iswdigit(wtab) == 1); + // cppcheck-suppress knownConditionTrueFalse AssertAlwaysTrue(labs(three) == 3); // cppcheck-suppress knownConditionTrueFalse