[cocci] Searching for unused input parameters with SmPL?

Markus Elfring <[email protected]>
Newsgroups fr.inria.cocci
Message-ID <[email protected]>
Hello,

It can happen that input parameters would not be used within a function
(or macro) implementation.
https://stackoverflow.com/questions/3599160/how-can-i-suppress-unused-parameter-warnings-in-c
https://clang.llvm.org/extra/clang-tidy/checks/misc/unused-parameters.html

Can components of the Coccinelle software help any more to detect such
technical details?

Regards,
Markus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.