Hi, I saw this solution in StackOverflow but with 25+ years old code base with 500+ KLOC (C/C++), it's not my favorite solution. This is why I am looking for something only for the function parameters. This would reduce the scope to something maybe more manageable.
Hi, is there an option with cppcheck to catch wrong typedef in parameters ? See the example here, ConvertMeter() and ConvertFeet() with the wrong parameter type. Thanks. typedef float Meter; typedef float Feet; Feet ConvertMeter( Meter a ) { return a * 3.2807; } Meter ConvertFeet( Feet a ) { return a / 3.2807; } void TestThis(void) { Feet a = 1.0; Meter b = 1.0; ConvertMeter( a ); ConvertFeet( b ); }
Hi, I have the same issue with French characters with version svn 13394. I am attaching a test file to show the problem and I will try to update the patch according to Petrov. Regards, Robert
Hi, I can't reproduce the problem anymore in svn 13231. I guess that this ticket can be closed until I can reproduce it. Thanks.
Hi, something related to the mouse; I'm getting this once in a while and maybe it's linked to this issue: WxWidgets Debug Alert ../../src/common/wincmn.cpp(3426) assert "!wxMouseCapture::stack.empty()" failed in ReleaseMouse(): Releasing mouse capture but capture stack empty?
Hi, no RPT and I tried also with /v to display more info but nothing important is showing up except that I noticed the verbose trace is not 'flushed' . Here's an example: Conversion succeeded using wxEncodingConverter (buffer size = 37983, converted size = 37987. Editor Open Project data set for xxxxxxx Mozilla universal detection engine detected 'Pure ASCII'. Final encoding detected: Windows Western European (CP 1252) (ID: 33) Conversion succeeded using wxEncodingConverter (buffer size = 39555,...
When editing makefile in 2 projects, C::B stalled
The 'scriptwizard' plugin should have more details in the description.
The 'Files extension handler' plugin should have more details in the description.
Hi darkweb, the problem is a buffer overflow; I'm guessing the read from the serial port has no (or not big enough) time-out in receive. The time-out should be 3.5 characters in between frame. Thanks.
Hi, no luck for serial port. Most of the time it's failing and it's because it's only handling packet (for TCP) not byte.
Hi, the '-install' is failing but I was able to find the rxtx, here is a copy: http://www.jcontrol.org/download/rxtx_en.html After installing on Windows 10, it's looking good. BTW, the latest download file from SourceForge is only containing the help file. Thanks
Hi, any way to close this bug ? It's been fixed since a few months. Thanks
Hi, I'm a first time user and I'm trying to use the serial port. First time ModbuslPal indicated the missing RXTX library; I've found multiple site where the library is available but so far no luck. When I install the library; ModbusPal refuse to start. Can someone point me to the latest version that work in Windows 10 ? Thanks
I will give it a try. Thanks
Hi, cppcheck didn't detect this problem (neither gcc or clang): int f( unsigned char TryThis ) { return TryThis >> 8; } Integer promotion is causing this to be valid but this caused a bug in our system and was not detected until it reached the field. Worth to add a small test for this ?
Hi, the svg images are updated thanks to darmar-It.
Hi, I will open an issue in github; I prefer that also,. Thanks
Hi, I'm giving it a try in black and in red. Better ?
File missing image is difficult to view
"Implementation of" is searching in all projects instead of current one
Hi, I forgot to write: "Use Advanced RegEx searches" is enable.
Using regexp in Find with invalid query is causing a debug alert
Hi, got the same problem when changing the syntax highlighting for markdown (got assert failure 5 times). I cannot reproduce it. Seems related to the number of changes I made in the foreground/background colors. svn 11499 Build Sep 30 2018, 09:22:11 - wx3.1.1 (Windows , unicode) - 64 bit. Win 7 Professional, SP 1, i7-4790, 16 GB of RAM.
Hi, I got this problem too. I'm guessing cppcheck is considering the exit condition of the for() to be 'idx < MAX_COUNT' in this case the idx will be greater than MAX_COUNT. Since a 'break' was the exit condition, it's a false positive but this also indicate the 'wasFound' is not needed and the code 'int x = some_array[idx]' could be moved inside the for loop before the 'break'. Hope it help
OK working fine now. Thanks.
OK I will give it a try before the week-end. Thanks.
Filename added to source code when quickly clicking on project file
Good news. I will give it a try as soon as it's available. Thanks a lot.
Selecting a variable is no more highlighting occurences
Hi, I'm using cppcheck with --library=./rules.cfg to prevent warnings (like uninitialized variable) on a function that never return. It was working fine before 1.81 and now it's failing with "(error) Uninitialized variable: x" when encountering that function. Here is my rules.cfg <def format="2"> <function name="AssertFatal"> <noreturn>true</noreturn> </function> </def> Robert
Crash when going in menu Fortran/Tab2space
Missing file from project list causing cscope to hang
Hi, same issue here also. It's taking forever to analyzer my project. Win7 64-bi...
Hi, same issue here also. It's taking forever to analyzer my project.
Problem confirmed, VS 2015 Redist. was missing. Can be installed from M$ here: h...
If it helps, I noticed cppcheck is now installed in "c:\Program Files" instead of...
Same issue here also in Win7/64-bit.