Patch for Ring Gnome client.
Use CMAKE_CXX_FLAGS cmake variable to apply C++ compilation flags only to c++
files. This avoid some warnings.
I checked, flags set into CMAKE_CXX_FLAGS are really used. If you comment line
25, compilation will fail.
All comments are welcome.
---
CMakeLists.txt | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 379e510..62e141f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,7 +11,7 @@ IF (CMAKE_COMPILER_IS_GNUCC)
ENDIF()
ENDIF()
-ADD_DEFINITIONS("-std=c++1y")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-reorder -Woverloaded-virtual
-std=c++1y")
# set project name and version
PROJECT(ring-client-gnome)
@@ -107,10 +107,8 @@ ADD_DEFINITIONS(
-Wmissing-include-dirs
-Wundef
-Wmissing-format-attribute
- -Wno-reorder
-Wunused
-Wuninitialized
- -Woverloaded-virtual
-Wsuggest-attribute=const
-Wunused-value
-Wdouble-promotion
--
1.9.1
_______________________________________________
Ring mailing list
[email protected]
https://lists.savoirfairelinux.net/mailman/listinfo/ring