Building: better handling of deprecated 24/28724/1
authorJosé Bollo <jose.bollo@open.eurogiciel.org>
Tue, 14 Oct 2014 15:39:19 +0000 (17:39 +0200)
committerJosé Bollo <jose.bollo@open.eurogiciel.org>
Tue, 14 Oct 2014 15:39:19 +0000 (17:39 +0200)
It is useful to keep deprecated items as warning.
For doing that, this new option is needed.

Change-Id: Iaf140652f40d8a990d246741091119106c7b132b
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
CMakeLists.txt

index ca11bf1..86ccb16 100644 (file)
@@ -68,6 +68,7 @@ ADD_DEFINITIONS("-Wall")                        # Generate all warnings
 ADD_DEFINITIONS("-Wextra")                      # Generate even more extra warnings
 ADD_DEFINITIONS("-Wno-variadic-macros")         # Inhibit variadic macros warnings (needed for ORM)
 ADD_DEFINITIONS("-Wno-deprecated")               # No warnings about deprecated features
+ADD_DEFINITIONS("-Wno-deprecated-declarations")               # No warnings about deprecated features
 STRING(REGEX MATCH "([^.]*)" API_VERSION "${VERSION}")
 ADD_DEFINITIONS("-DAPI_VERSION=\"$(API_VERSION)\"")
 ADD_DEFINITIONS("-DCYNARA_DB_DIR=\"${CYNARA_DB_DIR}\"")