Open patrickkeys opened 1 year ago
You don't indicate how you are trying to build this code? I don't use any of the makefiles in this project folder itself. They were just copied over from the original CppUTest as it existed years ago when I first grabbed a copy of it. I just pull it in as a submodule of other projects and it is those other project's Makefiles which compile this code.
If you are starting a new project then I recommend getting the latest from https://github.com/cpputest
The warning can be ignored. That code wants to dereference a NULL pointer to generate a crash.
Hi Adam
Thanks so much for taking a look at this! Apologies for not including more information... I was building as part of CrashDebug, so using the makefiles there. Incidentally, there may be a few more similar issues when trying to build - I'll see if I can resolve in a similar fashion...
You could always get rid of the -Werror flag just to get things building and then try to figure out how to fix or silence the other warnings later. If you have a PR that gets it to work in your environment then I would love to see it. By the way, you didn't mention which OS and more importantly which compiler (GCC/Clang/etc) version you are using.
I should have some time (hopefully!) this week to have a look at this - quite happy to work out the necessary changes and send a PR. I'm compiling on Linux, specifically openSUSE Tumbleweed (rolling release), specifically using GCC 13.1.1. Tumbleweed is a rolling (development) release, which means that toolchain changes are more likely to break things - but also a good indicator of changes in the pipeline for other distributions.
Thanks for the info.
I should have some time (hopefully!) this week to have a look at this - quite happy to work out the necessary changes and send a PR.
Sounds good.
When attempting to compile, the following error is raised: