diff options
author | Ctibor <ctibor.brancik@seznam.cz> | 2015-01-29 20:34:51 +0100 |
---|---|---|
committer | Ctibor <ctibor.brancik@seznam.cz> | 2015-01-29 20:34:51 +0100 |
commit | d2c1c3d17276651192ea87cb5cb77ec59efbf844 (patch) | |
tree | 64a258c50072a653cb88313184c075a5edc8a4e3 /sci-astronomy/open-phd-guiding/files/open-phd-guiding-2.9999-remove_compiler_strict_warnings.patch | |
parent | 1cc443c6f9d616b70263365687f9fddd0029e86c (diff) | |
download | brancik-overlay-d2c1c3d17276651192ea87cb5cb77ec59efbf844.tar.gz brancik-overlay-d2c1c3d17276651192ea87cb5cb77ec59efbf844.tar.bz2 |
Added patch for sci-astronomy/open-phd-guiding:2 that disables compiler strict warnings and enbles it to build succesfully.
Diffstat (limited to 'sci-astronomy/open-phd-guiding/files/open-phd-guiding-2.9999-remove_compiler_strict_warnings.patch')
-rw-r--r-- | sci-astronomy/open-phd-guiding/files/open-phd-guiding-2.9999-remove_compiler_strict_warnings.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sci-astronomy/open-phd-guiding/files/open-phd-guiding-2.9999-remove_compiler_strict_warnings.patch b/sci-astronomy/open-phd-guiding/files/open-phd-guiding-2.9999-remove_compiler_strict_warnings.patch new file mode 100644 index 0000000..edead7a --- /dev/null +++ b/sci-astronomy/open-phd-guiding/files/open-phd-guiding-2.9999-remove_compiler_strict_warnings.patch @@ -0,0 +1,37 @@ +diff -ruN open-phd-guiding/CMakeLists.txt open-phd-guiding.new/CMakeLists.txt +--- open-phd-guiding/CMakeLists.txt 2015-01-29 19:17:25.395991521 +0100 ++++ open-phd-guiding.new/CMakeLists.txt 2015-01-29 20:30:23.754846999 +0100 +@@ -65,33 +65,6 @@ + + include_directories(${CMAKE_SOURCE_DIR}) + +- +-# we don't do the strict warnings for MSVC because the MSVC compiler +-# generates > 14,000 warnings, mostly from wx. +-if (NOT MSVC) +- #Strict warnings +- CHECK_CXX_COMPILER_FLAG("-W" COMPILER_SUPPORTS_WARNINGS) +- CHECK_CXX_COMPILER_FLAG("-Wall" COMPILER_SUPPORTS_WALL) +- CHECK_CXX_COMPILER_FLAG("-Wextra" COMPILER_SUPPORTS_WEXTRA) +- CHECK_CXX_COMPILER_FLAG("-Werror" COMPILER_SUPPORTS_WERROR) +-# if(COMPILER_SUPPORTS_WARNINGS) +-# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W") +-# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W") +-# endif(COMPILER_SUPPORTS_WARNINGS) +- if(COMPILER_SUPPORTS_WALL) +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") +- endif(COMPILER_SUPPORTS_WALL) +-# if(COMPILER_SUPPORTS_WEXTRA) +-# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra") +-# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra") +-# endif(COMPILER_SUPPORTS_WEXTRA) +- if(COMPILER_SUPPORTS_WERROR) +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror") +- endif(COMPILER_SUPPORTS_WERROR) +-endif (NOT MSVC) +- + # Scopes to use with openPHD + if (MSVC) + set(phd_SCOPES |