Cross Platform Warnings

Hi! – Question here –

Is the juce_recommended_warning macros in CMake meant to produce cross platform matching warnings?

When I write code primarily on Mac – moving to windows there’s always warnings – especially due to apple clang not warning float → int conversions.

Anyone have a good solution for that?

J

No, it’s just supposed to enable some common and useful warnings on each platform.

If you want to continue using the same compilers, then your best bet is probably to make it easier to build with all those compilers, e.g. with a CI service.

Alternatively, you could use the same compiler (probably clang) on all platforms. I think this is a worse option, as you might miss out on some useful warnings.

1 Like