Fix allow_warnings check
We should disallow warnings when this flag is not defined, not when it is.
This commit is contained in:
parent
21fc248799
commit
ce5f135141
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user