From 5b8d93efdafa3788a915e7ba6ef05f4a408b5f48 Mon Sep 17 00:00:00 2001 From: Alexander Mai Date: Sat, 14 Mar 2015 23:31:56 +0100 Subject: [PATCH] posix.cfg: Fix false positives and add poll() --- cfg/posix.cfg | 22 ++++++++++++++++------ test/cfg/posix.c | 1 + 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/cfg/posix.cfg b/cfg/posix.cfg index c33a774af..38bab9fec 100644 --- a/cfg/posix.cfg +++ b/cfg/posix.cfg @@ -837,7 +837,7 @@ false - + @@ -1047,6 +1047,21 @@ false + + + + false + + + + + + + + + + + @@ -1066,16 +1081,11 @@ false - - - - - diff --git a/test/cfg/posix.c b/test/cfg/posix.c index eed6e10c1..1decaf1be 100644 --- a/test/cfg/posix.c +++ b/test/cfg/posix.c @@ -150,6 +150,7 @@ void uninitvar(int fd) { pattern=""; // cppcheck-suppress uninitvar regcomp(®, pattern, cflags); + regerror (0, ®, 0, 0); // cppcheck-suppress uninitvar // cppcheck-suppress unreadVariable char *buffer = ecvt(d, 11, &decimal, &sign);