posix.cfg: improve configuration for dlsym()
This commit is contained in:
parent
6eca26a4cf
commit
2adf65968b
|
@ -95,6 +95,7 @@
|
||||||
<function name="dlsym">
|
<function name="dlsym">
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
<leak-ignore/>
|
<leak-ignore/>
|
||||||
|
<use-retval/>
|
||||||
<returnValue type="void*"/>
|
<returnValue type="void*"/>
|
||||||
<arg nr="1">
|
<arg nr="1">
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
|
|
|
@ -343,6 +343,8 @@ void dl(const char* libname, const char* func)
|
||||||
// cppcheck-suppress uninitvar
|
// cppcheck-suppress uninitvar
|
||||||
// cppcheck-suppress unreadVariable
|
// cppcheck-suppress unreadVariable
|
||||||
void* sym = dlsym(lib, funcname);
|
void* sym = dlsym(lib, funcname);
|
||||||
|
// cppcheck-suppress ignoredReturnValue
|
||||||
|
dlsym(lib, "foo");
|
||||||
void* uninit;
|
void* uninit;
|
||||||
// cppcheck-suppress uninitvar
|
// cppcheck-suppress uninitvar
|
||||||
dlclose(uninit);
|
dlclose(uninit);
|
||||||
|
|
Loading…
Reference in New Issue