From 961ae14eda6918cc10f12c1e82b2109b5de377b8 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 07 Oct 2017 15:25:01 -0400 Subject: MqTabBody: Use GLib macros instead of _Pragma()s G_GNUC_BEGIN_IGNORE_DEPRECATIONS and G_GNUC_END_IGNORE_DEPRECATIONS expand to other pragmas for other compilers. --- diff --git a/src/tab-body.c b/src/tab-body.c index 843fe5b..2646093 100644 --- a/src/tab-body.c +++ b/src/tab-body.c @@ -151,10 +151,9 @@ menu_open_audio_win_activate_cb(GtkAction __attribute__((unused)) *action, #define NEW_CUSTOM_ITEM(NAME, LABEL) \ do { \ /* Don't blame me; blame WebKitGTK+ for using GtkAction. */ \ - _Pragma("GCC diagnostic push") \ - _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")\ + G_GNUC_BEGIN_IGNORE_DEPRECATIONS \ action = gtk_action_new(#NAME, (LABEL), NULL, NULL); \ - _Pragma("GCC diagnostic pop") \ + G_GNUC_END_IGNORE_DEPRECATIONS \ g_signal_connect(action, "activate", \ G_CALLBACK(menu_##NAME##_activate_cb), body); \ menu_item = webkit_context_menu_item_new(action); \ -- cgit v0.9.1