Use -Wno-error=* instead of -Wno-* flags.
Unknown -Wno-* flags are not rejected by the compiler and lead to confusing error messages.