Fix allow_warnings check

We should disallow warnings when this flag is not defined, not when it
is.
This commit is contained in:
Vadim Zeitlin 2021-01-30 21:35:35 +01:00
parent 21fc248799
commit ce5f135141

View File

@ -70,7 +70,7 @@ jobs:
;;
esac
if [ ${{ matrix.allow_warnings }} ]; then
if [ -z ${{ matrix.allow_warnings }} ]; then
error_opts="-Werror $allow_warn_opt"
echo "wxMAKEFILE_ERROR_CXXFLAGS=$error_opts" >> $GITHUB_ENV
echo "wxMAKEFILE_CXXFLAGS=$wxMAKEFILE_CXXFLAGS $error_opts" >> $GITHUB_ENV