Fix #8411

Suppress warnings for setNamedColour.
Warnings reneder composer unusable on windows, even for testing reasons.