> On 20 Dec 2022, at 09:48, Jan Beulich <jbeul...@suse.com> wrote: > > On 20.12.2022 09:50, Luca Fancellu wrote: >> Cppcheck has found a violation of rule 20.7 for the macro >> __config_enabled but the preprocessor branch where this macro is >> defined should not be analysed by cppcheck when CPPCHECK macro is >> defined, hence this is a false positive of the tool and we can >> safely suppress the finding. > > So what was commit 43aa3f6e72d3's ("xen/build: Add cppcheck and > cppcheck-html make rules") adjustment to the file about then? Yes the commit is right, cppcheck itself needs that, the problem here comes from the misra add-on (the cppcheck component that does the MISRA analysis) that is wrong. Anyway I will drop this patch together with all the false-positive on the Tool for now. > > Jan >
- [RFC PATCH 05/18] arm: cppcheck: fix misra rule 20.7 on arm/... Luca Fancellu
- [RFC PATCH 06/18] public: cppcheck: misra rule 20.7 on publi... Luca Fancellu
- [RFC PATCH 08/18] xen: cppcheck: misra rule 20.7 deviation o... Luca Fancellu
- [RFC PATCH 07/18] xen: cppcheck: misra rule 20.7 deviation o... Luca Fancellu
- [RFC PATCH 09/18] xen: cppcheck: misra rule 20.7 deviation o... Luca Fancellu
- Re: [RFC PATCH 09/18] xen: cppcheck: misra rule 20.7 de... Jan Beulich
- Re: [RFC PATCH 09/18] xen: cppcheck: misra rule 20.... Luca Fancellu
- [RFC PATCH 10/18] xen: cppcheck: misra rule 20.7 deviation o... Luca Fancellu
- [RFC PATCH 11/18] xen: cppcheck: misra rule 20.7 deviation o... Luca Fancellu
- [RFC PATCH 12/18] arm: cppcheck: misra rule 20.7 deviation o... Luca Fancellu
- [RFC PATCH 13/18] public/x86: cppcheck: misra rule 20.7 devi... Luca Fancellu
- [RFC PATCH 14/18] public/x86: cppcheck: misra rule 20.7 devi... Luca Fancellu
- [RFC PATCH 17/18] public: misra rule 20.7 deviation on errno... Luca Fancellu
- [RFC PATCH 18/18] public: misra rule 20.7 deviation on memor... Luca Fancellu