build: fix the Windows CI.

Recently added warnings on json-c dependency breaks with Mingw-w64.
Removes warning promotion to errors when compiling json-c.
This commit is contained in:
Jehan 2020-04-15 16:27:16 +02:00
parent 987447f18f
commit b948ff932d

View file

@ -35,9 +35,15 @@ cd ..
# json-c
# XXX: warnings promotion to errors disabled because of some
# -Wstrict-prototypes warnings happening on Mingw-w64.
# The DISABLE_WERROR option can be removed once json-c removes this
# warning for Windows: https://github.com/json-c/json-c/pull/581
# Or when patches are published for all Mingw-w64 headers. See ML patch
# and followup emails: https://sourceforge.net/p/mingw-w64/mailman/message/36981783/
git clone --depth 1 https://github.com/json-c/json-c.git && \
mkdir json-c/_build && cd json-c/_build && \
CFLAGS="-Wno-expansion-to-defined" crossroad cmake .. && make install || exit 1
CFLAGS="-Wno-expansion-to-defined" crossroad cmake -DDISABLE_WERROR=ON .. && make install || exit 1
cd ../..
# libmypaint