this does not happen when I remove the casting for the strlen() return value.
Sidenote: I would have used the issue tracer but i can't aply for an account since the server that is mentioned in the wiki seems to have a problem (see atachment)
I am using the currently downloadable windows installer version 2.6 and the analysis is set to C99, forced C and Nativ. I have inconclusive errors activated but it is not marked as such.
Last edit: Enzo Marscheck 2021-10-06
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well I made a minimal example to illustrate that there is nothing special going on here and didn't want/can't paste the real code (specially not all of it) but It does the same when the result from strlen() gets written to a local or a global variable.
Last edit: Enzo Marscheck 2021-10-06
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The following C code gives me the ignoredReturnValue warning for the strlen() call:
this does not happen when I remove the casting for the strlen() return value.
Sidenote: I would have used the issue tracer but i can't aply for an account since the server that is mentioned in the wiki seems to have a problem (see atachment)
Which version are you using? I do not get a warning with current head.
I am using the currently downloadable windows installer version 2.6 and the analysis is set to C99, forced C and Nativ. I have inconclusive errors activated but it is not marked as such.
Last edit: Enzo Marscheck 2021-10-06
This is all I get (for any value of platform):
Maybe the definition of
SOME_SRUCT_TYPE_t
needs to be visible?Well I made a minimal example to illustrate that there is nothing special going on here and didn't want/can't paste the real code (specially not all of it) but It does the same when the result from strlen() gets written to a local or a global variable.
Last edit: Enzo Marscheck 2021-10-06