[Gambas-user] A lot of warnings from Cppchek with gbc and gbx
    Benoît Minisini 
    benoit.minisini at gambas-basic.org
       
    Tue Nov 14 09:01:38 CET 2023
    
    
  
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!
-- 
Benoît Minisini.
    
    
More information about the User
mailing list