Disabling -Werror and -Wall for tests on Cygwin

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
hamishmb
Knows some wx things
Knows some wx things
Posts: 29
Joined: Mon Jul 08, 2019 8:48 pm
Location: /usr/lib/python3/

Disabling -Werror and -Wall for tests on Cygwin

Post by hamishmb »

Hi there,

I'm trying to get wxWidgets 3.1.5 build and validated on Cygwin (I'm the package maintainer), but I can't get the tests to build, because apparently no matter how I author the Makefile, -Werror or -Wall is still somehow getting in there and making all the warnings into errors. (I have tried manually removing anything that looks like a Werror or Wall flag, and set -fpermissive with CFLAGS and CXXFLAGS, but to no avail, yet).

I appreciate that -Wall and -Werror are good to use, but I just want to try to get the tests working as a starting point. Is there an easy way to stop this from happening? Definitely a newbie question I reckon, but can't seem to figure it out on my own.

Thanks,
Hamish
Post Reply