From 34a61e08830cdc9c4e50e8e6dc62f5ad95eb33b9 Mon Sep 17 00:00:00 2001 From: Alexander Mai Date: Sun, 8 Mar 2015 15:21:50 +0100 Subject: [PATCH] Additions to windows.cfg. Fix compiler warning in test/cfg/posix.c --- cfg/windows.cfg | 35 +++++++++++++++++++++++++++++++++++ test/cfg/posix.c | 5 +++-- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/cfg/windows.cfg b/cfg/windows.cfg index ae2dc9224..39363b0b8 100644 --- a/cfg/windows.cfg +++ b/cfg/windows.cfg @@ -1461,10 +1461,45 @@ + + + false + + + + + + + false + + + + + + + + diff --git a/test/cfg/posix.c b/test/cfg/posix.c index 831803ab8..861683dcd 100644 --- a/test/cfg/posix.c +++ b/test/cfg/posix.c @@ -7,6 +7,7 @@ // No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 // +#include #include // <- FILE #include #include @@ -126,6 +127,8 @@ void invalidFunctionArg() { void uninitvar(int fd) { int x; char buf[2]; + int decimal, sign; + double d; // cppcheck-suppress uninitvar write(x,"ab",2); // cppcheck-suppress uninitvar @@ -143,8 +146,6 @@ void uninitvar(int fd) { pattern=""; // cppcheck-suppress uninitvar regcomp(®, pattern, cflags); - int decimal, sign; - double d; // cppcheck-suppress uninitvar // cppcheck-suppress unreadVariable char *buffer = ecvt(d, 11, &decimal, &sign);