From 2adf65968b5fc6f56b619eeff70a6f0feb285240 Mon Sep 17 00:00:00 2001 From: amai2012 Date: Sat, 12 Jan 2019 21:50:02 +0100 Subject: [PATCH] posix.cfg: improve configuration for dlsym() --- cfg/posix.cfg | 1 + test/cfg/posix.c | 2 ++ 2 files changed, 3 insertions(+) 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);