[LIBXSLT] Disable misleading-indentation warnings
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 28 Apr 2019 19:35:13 +0000 (21:35 +0200)
committerHervé Poussineau <hpoussin@reactos.org>
Mon, 27 May 2019 11:22:40 +0000 (13:22 +0200)
Fixes GCC 8 warning:
dll/3rdparty/libxslt/security.c:358:5: error: this 'else' clause does not guard... [-Werror=misleading-indentation]
     else
     ^~~~
dll/3rdparty/libxslt/security.c:365:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
  if (ret <= 0) {
  ^~

dll/3rdparty/libxslt/CMakeLists.txt

index 336b1df..1ff2571 100644 (file)
@@ -1,4 +1,8 @@
 
+if(NOT MSVC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
+    add_compile_flags("-Wno-misleading-indentation")
+endif()
+
 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libxslt
                     ${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/libwin-iconv)