Russ,

Linux is a flavor of Unix so `if (UNIX)` sections control it as well as BSD, 
macOS, and Solaris. We haven’t heard from the guy who was building on Solaris 
in quite a while and we don’t test on it so I’ve no idea if it still works. 
Everything else does. We test Fedora, Arch Linux, and macOS in CI and I’m 
working now on adding CI for Mingw64.

The C and C++ compile flags for all systems are `-Werror -Wall 
-Wmissing-prototypes -Wmissing-declarations`, see lines 613, 614, and 618. You 
need not do anything to CMakeLists.txt unless you want to turn on more warnings.

But there are 36 places where we turn off some diagnostic with `#pragma GCC 
diagnostic ignored` so you can work on fixing those if you like, just grep for 
that string to find them.

Regards,
John Ralls



> On Feb 2, 2026, at 4:33 PM, <[email protected]> <[email protected]> 
> wrote:
> 
> So I am starting to work on converting various targets in gnucash-git to C++.
> When doing that I intend to add -Wall -Werror and resolve any issues that pop 
> up.
> I plan to test on MINGW and Ubuntu, but I see a whole host of different 
> platforms mentioned in the cmakefiles.
> If we actually build for those other platforms, I’d like to restrict the 
> -Wall -Werror to just the 2 platforms I can test so it doesn’t create 
> headaches for those other platforms.
> I see MINGW for building that platform, but don’t see anything for Linux 
> specifically, I assume I can use
> (CMAKE_SYSTEM_NAME MATCHES "Linux") but thought I would check with the 
> experts.
>  _______________________________________________
> gnucash-devel mailing list
> [email protected]
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel


_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to