diff --git a/cfg/posix.cfg b/cfg/posix.cfg
index 0ad3f0d14..a219f8ab8 100644
--- a/cfg/posix.cfg
+++ b/cfg/posix.cfg
@@ -828,6 +828,7 @@
+
false
@@ -839,6 +840,7 @@
+ 0:
diff --git a/test/cfg/posix.c b/test/cfg/posix.c
index 6ca83596c..334d2616d 100644
--- a/test/cfg/posix.c
+++ b/test/cfg/posix.c
@@ -148,12 +148,15 @@ void uninitvar(int fd)
char buf[2];
int decimal, sign;
double d;
+ void *p;
// cppcheck-suppress uninitvar
write(x,"ab",2);
// cppcheck-suppress uninitvar
write(fd,buf,2);
// cppcheck-suppress uninitvar
write(fd,"ab",x);
+ // cppcheck-suppress uninitvar
+ write(fd,p,2);
/* int regcomp(regex_t *restrict preg, const char *restrict pattern, int cflags); */
diff --git a/test/cfg/std.c b/test/cfg/std.c
index edced6778..7dabd8a8b 100644
--- a/test/cfg/std.c
+++ b/test/cfg/std.c
@@ -16,6 +16,7 @@
#include
#include
#include
+#include
void bufferAccessOutOfBounds(void)
{
@@ -3367,3 +3368,13 @@ void uninitvar_itoa(void)
// cppcheck-suppress uninitvar
(void)itoa(value,str,base);
}
+
+void invalidFunctionArgBool_abs(bool b, double x, double y)
+{
+ // cppcheck-suppress invalidFunctionArgBool
+ (void)abs(true); // #6990
+ // cppcheck-suppress invalidFunctionArgBool
+ (void)abs(b); // #6990
+ // cppcheck-suppress invalidFunctionArgBool
+ (void)abs(x