https://git.reactos.org/?p=reactos.git;a=commitdiff;h=51fbf9e8c0087ddcdc23bdd347ecad88ee5fc771

commit 51fbf9e8c0087ddcdc23bdd347ecad88ee5fc771
Author:     Timo Kreuzer <[email protected]>
AuthorDate: Sun Apr 28 21:35:13 2019 +0200
Commit:     HervĂ© Poussineau <[email protected]>
CommitDate: Mon May 27 13:22:40 2019 +0200

    [LIBXSLT] Disable misleading-indentation warnings
    
    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 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dll/3rdparty/libxslt/CMakeLists.txt 
b/dll/3rdparty/libxslt/CMakeLists.txt
index 336b1df899..1ff2571361 100644
--- a/dll/3rdparty/libxslt/CMakeLists.txt
+++ b/dll/3rdparty/libxslt/CMakeLists.txt
@@ -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)
 

Reply via email to