[Gambas-user] A lot of warnings from Cppchek with gbc and gbx

BB adamnt42 at gmail.com
Tue Nov 14 09:04:57 CET 2023


On 14/11/23 6:31 pm, Benoît Minisini wrote:
> Le 14/11/2023 à 08:59, Benoît Minisini a écrit :
>> Le 14/11/2023 à 07:21, Филипп Друан via User a écrit :
>>> Hello all.
>>>
>>> I started the Cppcheck static analyzer by giving it the code gbc and 
>>> gbx (although I'm not sure what they are). The analyzer swore a lot 
>>> and said there were critical errors. I was immediately embarrassed. 
>>> If the code is in the repository, it will most likely be compiled 
>>> and work.
>>> I ask you to run Cppcheck yourself and check what it is not 
>>> satisfied with.
>>> If I succeed, I will try to check your code with a better analyzer.
>>> Thanks!
>>>
>>> Filipp
>>>
>>
>> Beware that 'cppcheck' apparently does not understand many gcc 
>> syntaxes, so you get a lot of false warnings and errors.
>>
>> There are some real warnings or errors to fix anyway, but each 
>> 'cppcheck' output must be carefully check for correctness, so it 
>> takes a lot of time.
>>
>> Regards,
>>
>
> Moreover, it does not understand many macros used by Gambas code, so 
> it sees only syntax error, undefined variables, and so on.
>
> Not so useful tool at the moment!
>
Yep. I guessed before trying it that the macros would give it a severe 
migraine headache, but was surprised that it just worked on gbx. Mneh.


More information about the User mailing list