I saw the TODO in the test/cfg/posix.c line 145 ff:
/* TODO: add configuration for open/fdopen // #2830 int fd = open("path", O_RDONLY); FILE *f = fdopen(fd, "rt"); fclose(f); */
I disabled it and got: "test/cfg/posix.c:148:information:checkLibraryUseIgnore:--check-library: Function fdopen() should have <use>/<leak-ignore> configuration"
That makes sense, so i added the <use>:
But i still get the message that the same --check-library message, like the <use> is ignored somehow.
The only other places where <use> is used is in gtk.cfg for which no tests exist.
Shall i reopen ticket 2830 and update it or better create a new ticket?
Any idea what can be wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Tried to fix https://trac.cppcheck.net/ticket/2830 again:
I saw the TODO in the test/cfg/posix.c line 145 ff:
I disabled it and got:
"test/cfg/posix.c:148:information:checkLibraryUseIgnore:--check-library: Function fdopen() should have <use>/<leak-ignore> configuration"
That makes sense, so i added the
<use>
:But i still get the message that the same --check-library message, like the
<use>
is ignored somehow.The only other places where
<use>
is used is in gtk.cfg for which no tests exist.Shall i reopen ticket 2830 and update it or better create a new ticket?
Any idea what can be wrong?
feel free to create a new ticket.
For the record: I created the ticket https://trac.cppcheck.net/ticket/8380