diff --git a/cfg/posix.cfg b/cfg/posix.cfg index 82e9e08d9..159d1244a 100644 --- a/cfg/posix.cfg +++ b/cfg/posix.cfg @@ -95,6 +95,7 @@ false + diff --git a/test/cfg/posix.c b/test/cfg/posix.c index 5a0c2747a..d86794a6e 100644 --- a/test/cfg/posix.c +++ b/test/cfg/posix.c @@ -343,6 +343,8 @@ void dl(const char* libname, const char* func) // cppcheck-suppress uninitvar // cppcheck-suppress unreadVariable void* sym = dlsym(lib, funcname); + // cppcheck-suppress ignoredReturnValue + dlsym(lib, "foo"); void* uninit; // cppcheck-suppress uninitvar dlclose(uninit);