On my system, I noticed a a few compiler warnings when compiling cppcheck 2.4.1. I don't think they affect the working of the tool, but I also could not find a thread on this issue yet. I also don't recall whether these were already present in the previous version (regression) or not.
In most cases multichar constants are probably mistakes but in these cases we use those intentionally. So it would be good to hide these warnings somehow.
That deprecated warning has been written for a long time. When it first appeared many years ago we did not want to change because we did not want to break old tool chains.. well it feels like that was a long time ago so I think it could be considered. If you fix it then what glibc version etc would be required?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On my system, I noticed a a few compiler warnings when compiling cppcheck 2.4.1. I don't think they affect the working of the tool, but I also could not find a thread on this issue yet. I also don't recall whether these were already present in the previous version (regression) or not.
Compile flags:
make USE_Z3=yes MATCHCOMPILER=yes CFGDIR=/usr/share/cppcheck FILESDIR=/usr/share/cppcheck HAVE_RULES=yes CXXFLAGS="-O2 -DNDEBUG -Wall -Wno-sign-compare -Wno-unused-function"
Output (truncated to just the files which had warnings):
Platform:
Ubuntu 18.04.5 LTS
Versions of relevant packages:
thanks!
In most cases multichar constants are probably mistakes but in these cases we use those intentionally. So it would be good to hide these warnings somehow.
That deprecated warning has been written for a long time. When it first appeared many years ago we did not want to change because we did not want to break old tool chains.. well it feels like that was a long time ago so I think it could be considered. If you fix it then what glibc version etc would be required?
I don't know what the minimum glibc version needed would be. My current setup has the following installed for glib:
However, glib versions which are quite a bit older will surely also work if this warning has been around for a while.