When building with the flag -Werror
, as we do for our tests on CI, earlier versions of Clang, I allowed preventing certain warnings from being promoted to errors using the following syntax:
-W-no-error-${warning-name}
When building without -Werror
on the Clang version included in Xcode 13.0 beta (13A5154h), this leads to warnings like the following:
warning: unknown -Werror warning specifier: '-Wno-error-deprecated-declarations' [-Wunknown-warning-option]
So how do I prevent promotion of a specific warning to an error now?