[Lldb-commits] [PATCH] D13981: Disable the strict-aliasing warnings produced by gcc

Tamas Berghammer via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 23 03:37:13 PDT 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL251107: Disable the strict-aliasing warnings produced by gcc (authored by tberghammer).

Changed prior to commit:
  http://reviews.llvm.org/D13981?vs=38115&id=38226#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D13981

Files:
  lldb/trunk/cmake/modules/LLDBConfig.cmake

Index: lldb/trunk/cmake/modules/LLDBConfig.cmake
===================================================================
--- lldb/trunk/cmake/modules/LLDBConfig.cmake
+++ lldb/trunk/cmake/modules/LLDBConfig.cmake
@@ -210,6 +210,12 @@
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-pragmas")
 endif ()
 
+check_cxx_compiler_flag("-Wno-strict-aliasing"
+                        CXX_SUPPORTS_NO_STRICT_ALIASING)
+if (CXX_SUPPORTS_NO_STRICT_ALIASING)
+  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-strict-aliasing")
+endif ()
+
 # Disable Clang warnings
 check_cxx_compiler_flag("-Wno-deprecated-register"
                         CXX_SUPPORTS_NO_DEPRECATED_REGISTER)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13981.38226.patch
Type: text/x-patch
Size: 670 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151023/76bd91c6/attachment.bin>


More information about the lldb-commits mailing list