[Spice-devel,1/2] test: Ignore too new warnings

Submitted by Pavel Grunt on Dec. 5, 2016, 8:10 a.m.

Details

Message ID 20161205081048.19388-1-pgrunt@redhat.com
State Accepted
Commit b53c0d368b1c5c11c1c53d7e018c681d661e0731
Headers show
Series "Series without cover letter" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Pavel Grunt Dec. 5, 2016, 8:10 a.m.
There is an explicit check for the version
---
 server/tests/test-codecs-parsing.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/server/tests/test-codecs-parsing.c b/server/tests/test-codecs-parsing.c
index 0e23553b..c1b3276d 100644
--- a/server/tests/test-codecs-parsing.c
+++ b/server/tests/test-codecs-parsing.c
@@ -54,6 +54,7 @@  static void codecs_good(void)
 
 /* g_test_expect_message is available since Glib 2.34 */
 #if GLIB_CHECK_VERSION(2, 34, 0)
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 static void codecs_bad(void)
 {
     guint i;
@@ -116,6 +117,7 @@  static void codecs_bad(void)
 
     spice_server_destroy(server);
 }
+G_GNUC_END_IGNORE_DEPRECATIONS
 #endif
 
 int main(int argc, char *argv[])

Comments

> 
> There is an explicit check for the version
> ---
>  server/tests/test-codecs-parsing.c | 2 ++
>  1 file changed, 2 insertions(+)
> 

Acked-by: Frediano Ziglio <fziglio@redhat.com>

Frediano

> diff --git a/server/tests/test-codecs-parsing.c
> b/server/tests/test-codecs-parsing.c
> index 0e23553b..c1b3276d 100644
> --- a/server/tests/test-codecs-parsing.c
> +++ b/server/tests/test-codecs-parsing.c
> @@ -54,6 +54,7 @@ static void codecs_good(void)
>  
>  /* g_test_expect_message is available since Glib 2.34 */
>  #if GLIB_CHECK_VERSION(2, 34, 0)
> +G_GNUC_BEGIN_IGNORE_DEPRECATIONS
>  static void codecs_bad(void)
>  {
>      guint i;
> @@ -116,6 +117,7 @@ static void codecs_bad(void)
>  
>      spice_server_destroy(server);
>  }
> +G_GNUC_END_IGNORE_DEPRECATIONS
>  #endif
>  
>  int main(int argc, char *argv[])