diff --git a/cfg/windows.cfg b/cfg/windows.cfg
index 2230f80dc..74a86f1ce 100644
--- a/cfg/windows.cfg
+++ b/cfg/windows.cfg
@@ -4049,6 +4049,16 @@ HFONT CreateFont(
+
+
+
+ false
+
+
+
+
+
+
@@ -5995,6 +6005,18 @@ HFONT CreateFont(
+
+
+
+ false
+
+
+
+
+
+
+
+
diff --git a/test/cfg/posix.c b/test/cfg/posix.c
index 0649b300a..a540f5a42 100644
--- a/test/cfg/posix.c
+++ b/test/cfg/posix.c
@@ -23,6 +23,26 @@
#include
#include
+void uninitvar_putenv(char * envstr)
+{
+ // No warning is expected
+ (void)putenv(envstr);
+
+ char * p;
+ // cppcheck-suppress uninitvar
+ (void)putenv(p);
+}
+
+void nullPointer_putenv(char * envstr)
+{
+ // No warning is expected
+ (void)putenv(envstr);
+
+ char * p=NULL;
+ // cppcheck-suppress nullPointer
+ (void)putenv(p);
+}
+
void memleak_scandir(void)
{
struct dirent **namelist;
diff --git a/test/cfg/windows.cpp b/test/cfg/windows.cpp
index 2affba1f6..f8afb0fb8 100644
--- a/test/cfg/windows.cpp
+++ b/test/cfg/windows.cpp
@@ -10,6 +10,28 @@
#include
#include
#include
+#include
+
+
+void uninitvar__putenv(char * envstr)
+{
+ // No warning is expected
+ (void)_putenv(envstr);
+
+ char * p;
+ // cppcheck-suppress uninitvar
+ (void)_putenv(p);
+}
+
+void nullPointer__putenv(char * envstr)
+{
+ // No warning is expected
+ (void)_putenv(envstr);
+
+ char * p=NULL;
+ // cppcheck-suppress nullPointer
+ (void)_putenv(p);
+}
void invalidFunctionArg__getcwd(char * buffer)
{
@@ -22,6 +44,26 @@ void invalidFunctionArg__getcwd(char * buffer)
free(buffer);
}
+void nullPointer__get_timezone(long *sec)
+{
+ // No warning is expected
+ (void)_get_timezone(sec);
+
+ long *pSec = NULL;
+ // cppcheck-suppress nullPointer
+ (void)_get_timezone(pSec);
+}
+
+void nullPointer__get_daylight(int *h)
+{
+ // No warning is expected
+ (void)_get_daylight(h);
+
+ int *pHours = NULL;
+ // cppcheck-suppress nullPointer
+ (void)_get_daylight(pHours);
+}
+
void validCode()
{
DWORD dwordInit = 0;