From: Uwe Hermann Date: Tue, 15 Sep 2015 20:28:20 +0000 (+0200) Subject: sigrok-cross-mingw: Use CPPFLAGS=-D__printf__=__gnu_printf__. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4e8697df7f33d4014cef88214b02d4a56addcde9;p=sigrok-util.git sigrok-cross-mingw: Use CPPFLAGS=-D__printf__=__gnu_printf__. This avoids various compiler warnings. --- diff --git a/cross-compile/mingw/sigrok-cross-mingw b/cross-compile/mingw/sigrok-cross-mingw index 5920595..a7d625f 100755 --- a/cross-compile/mingw/sigrok-cross-mingw +++ b/cross-compile/mingw/sigrok-cross-mingw @@ -57,7 +57,7 @@ TOOLCHAIN_TRIPLET="$TARGET-w64-mingw32.static" P="$PREFIX/lib/pkgconfig" P2="$MXE/usr/$TOOLCHAIN_TRIPLET/lib/pkgconfig" -C="--host=$TOOLCHAIN_TRIPLET --prefix=$PREFIX" +C="--host=$TOOLCHAIN_TRIPLET --prefix=$PREFIX CPPFLAGS=-D__printf__=__gnu_printf__" CM="-DCMAKE_TOOLCHAIN_FILE=$MXE/usr/$TOOLCHAIN_TRIPLET/share/cmake/mxe-conf.cmake" L="--disable-shared --enable-static"