diff --git a/.github/workflows/android_cmake/start.sh b/.github/workflows/android_cmake/start.sh index 075a468782d5..4b275f01a3af 100755 --- a/.github/workflows/android_cmake/start.sh +++ b/.github/workflows/android_cmake/start.sh @@ -79,6 +79,8 @@ PKG_CONFIG_LIBDIR=/tmp/install/lib/pkgconfig cmake .. \ -DCMAKE_ANDROID_NDK=$ANDROID_NDK \ -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a \ -DCMAKE_SYSTEM_VERSION=24 \ + -DCMAKE_C_FLAGS=-Werror \ + -DCMAKE_CXX_FLAGS=-Werror \ "-DCMAKE_PREFIX_PATH=/tmp/install;$NDK_TOOLCHAIN/sysroot/usr/" \ -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=NEVER \ -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=NEVER \ diff --git a/ogr/ogrlinestring.cpp b/ogr/ogrlinestring.cpp index d729ca602257..4e7d3d618277 100644 --- a/ogr/ogrlinestring.cpp +++ b/ogr/ogrlinestring.cpp @@ -2050,6 +2050,7 @@ double OGRSimpleCurve::Project(const OGRPoint *poPoint) const { double dfResult = -1; #ifndef HAVE_GEOS + CPL_IGNORE_RET_VAL(poPoint); CPLError(CE_Failure, CPLE_NotSupported, "GEOS support not enabled."); return dfResult; #else diff --git a/ogr/ogrsf_frmts/jml/ogrjmllayer.cpp b/ogr/ogrsf_frmts/jml/ogrjmllayer.cpp index 74a25d0dc855..5a7e0138013d 100644 --- a/ogr/ogrsf_frmts/jml/ogrjmllayer.cpp +++ b/ogr/ogrsf_frmts/jml/ogrjmllayer.cpp @@ -29,10 +29,10 @@ #include "ogr_jml.h" #include "ogr_p.h" -constexpr int PARSER_BUF_SIZE = 8192; - #ifdef HAVE_EXPAT +constexpr int PARSER_BUF_SIZE = 8192; + /************************************************************************/ /* OGRJMLLayer() */ /************************************************************************/