compiler -Werror flag should be used only on CI
Even small differences in compiler versions may cause compiler errors in the case when -Werror is used. Different compiler versions may better or not detect warnings, CI should threat warning-as-error, but the application user should not bother with warnings, thus because the developer checks them and approve with CI.
The solution: use -Werror optionally, disable by default, enable on CI