! Fixed 64bit warnings using explicit casts or different types.
! Upgraded project file.
+ Added ID3v1 genre extensions by Winamp.
It seems that cppcheck doesn't understand some #if variants. It works using #ifndef but not in the following way: file.cpp: #include "file1.h" file1.h, file2.h, file3.h, fle4.h all in this way: #if !defined( INC_FILE1_H ) #define INC_FILE1_H #include "file2.h" #endif Then all INC definitions are checked separately: cppcheck.exe --force file.cpp Checking file.cpp ... Checking file.cpp: INC_FILE1_H... Checking file.cpp: INC_FILE2_H... Checking file.cpp: INC_FILE3_H... Checking file.cpp: INC_FILE4_H......
Hi There are several posts and questions about speeding up cppcheck. Me too I've run into a speed problem. Analyzing our codebase takes about a day with --force. Some #ifdefs don't need to be checked in all variants so I tried to -D and -U some of them in hope of bringing down execution time because less combinations need to be checked. However exactly the opposite happened. Here are some numbers: cppcheck file.cpp --force (and some other parameters but no -D or -U) 135 config combinations 26s Adding...
Hello I want to use --force to check all possible #ifdef combinations. However there are some defines that will never be used e.g. various platforms (sun, aix etc) when we only use linux and Windows. So these unwanted cases can be excluded with -U. But if there are many defines to exclude then the command line gets pretty long. For include paths there's already the param --includes-file. All -D items can be collected in a file which can be used with --include. I'd like to have a similar way for the...
Hello I get an uninitVar message from this code: (uint32 is a typedef for unsigned long) volatile uint32* pIPIVPR; switch (GetCoreId()& 0x01) { // default: case 0 : pIPIVPR = INOS_HW_ADDR32(DF_INOS_P2020_MPIC_IPIVPR0); break; case 1 : pIPIVPR = INOS_HW_ADDR32(DF_INOS_P2020_MPIC_IPIVPR1); break; } *pIPIVPR &= 0x7fffffff; Uninitialized variable: pIPIVPR A number & 0x01 can only be two cases, 0 and 1, so the switch covers all cases. Still cppcheck thinks that pIPIVPR is uninitialized. Adding the commented...
Thanks a lot for those pointers, I'll try them out.