From 79b6ff99e4397bfb568d72dcd4ec6f16cbbca17b Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Thu, 26 Apr 2012 12:18:38 +0200 Subject: [PATCH] Mark library include dirs as SYSTEM. Compilers will suppress warnings from files in those directories. --- CMakeLists.txt | 2 +- src/core/Endian.cpp | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5835bcd1..18343e35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -152,7 +152,7 @@ if(NOT ZLIB_SUPPORTS_GZIP) message(FATAL_ERROR "zlib 1.2.x or higher is required to use the gzip format") endif(NOT ZLIB_SUPPORTS_GZIP) -include_directories(${QT_INCLUDE_DIR} ${GCRYPT_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR}) +include_directories(SYSTEM ${QT_INCLUDE_DIR} ${GCRYPT_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR}) add_subdirectory(src) add_subdirectory(share) diff --git a/src/core/Endian.cpp b/src/core/Endian.cpp index 6f2130da..f96301a4 100644 --- a/src/core/Endian.cpp +++ b/src/core/Endian.cpp @@ -17,14 +17,7 @@ #include "Endian.h" -#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 3)) -#pragma GCC push_options -#pragma GCC diagnostic ignored "-Wold-style-cast" -#endif #include -#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 3)) -#pragma GCC pop_options -#endif #include namespace Endian {