From 142c1bbee7b46cf390eb375149da618a466f56bb Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Tue, 10 Sep 2013 16:18:15 +0800 Subject: [PATCH] MSVC Builds: Silence Cogl Deprecation Warnings Cogl-1.16 has much deprecation that is done, which causes the build of Clutter to generate lots of C4996 (deprecation) warnings. As in commit fa8809d7 (Add COGL_DISABLE_DEPRECATION_WARNINGS to the build flags), do likewise by adding this macro in the Visual C++ property sheets, so we would have much less C4996 warnings during the build. Please see bug 703877 for the rationale behind this. --- build/win32/vs10/clutter.props | 2 +- build/win32/vs9/clutter.vsprops | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/win32/vs10/clutter.props b/build/win32/vs10/clutter.props index 3bf3d89c3..bfdb92a80 100644 --- a/build/win32/vs10/clutter.props +++ b/build/win32/vs10/clutter.props @@ -11,7 +11,7 @@ HAVE_CONFIG_H;CLUTTER_COMPILATION;COGL_ENABLE_EXPERIMENTAL_API;COGL_HAS_WIN32_SUPPORT;CLUTTER_ENABLE_EXPERIMENTAL_API $(LibBuildDefines);_DEBUG;CLUTTER_ENABLE_DEBUG $(LibBuildDefines);G_DISABLE_ASSERT;G_DISABLE_CHECKS;G_DISABLE_CAST_CHECKS - $(BaseBuildDef);G_LOG_DOMAIN="Clutter";CLUTTER_LOCALEDIR="../share/locale";CLUTTER_SYSCONFDIR="../etc" + $(BaseBuildDef);G_LOG_DOMAIN="Clutter";CLUTTER_LOCALEDIR="../share/locale";CLUTTER_SYSCONFDIR="../etc";COGL_DISABLE_DEPRECATION_WARNINGS CLUTTER_DISABLE_DEPRECATION_WARNINGS;GLIB_DISABLE_DEPRECATION_WARNINGS $(BaseWinBuildDef);PREFIXDIR="/some/dummy/dir";$(ClutterDisableDeprecationWarnings) $(BaseBuildDef);TESTS_DATADIR="../share/clutter-$(ApiVersion)/data" diff --git a/build/win32/vs9/clutter.vsprops b/build/win32/vs9/clutter.vsprops index 2b35c755b..4b5754f5b 100644 --- a/build/win32/vs9/clutter.vsprops +++ b/build/win32/vs9/clutter.vsprops @@ -59,7 +59,7 @@ />