[gnome-control-center] Avoid warnings where G_LOG_DOMAIN is overriden



commit cd377768f5a78f7e33b40206fb6eaf6c6df619e1
Author: Robert Ancell <robert ancell canonical com>
Date:   Mon Jul 15 16:09:10 2019 +1200

    Avoid warnings where G_LOG_DOMAIN is overriden
    
    Undefine the value before overriding it to avoid the following warnings:
    ../panels/background/cc-background-chooser.c:22: warning: "G_LOG_DOMAIN" redefined

 panels/applications/cc-applications-panel.c | 1 +
 panels/background/bg-recent-source.c        | 1 +
 panels/background/cc-background-chooser.c   | 1 +
 3 files changed, 3 insertions(+)
---
diff --git a/panels/applications/cc-applications-panel.c b/panels/applications/cc-applications-panel.c
index e5028fdf2..43d6bda19 100644
--- a/panels/applications/cc-applications-panel.c
+++ b/panels/applications/cc-applications-panel.c
@@ -18,6 +18,7 @@
  * SPDX-License-Identifier: GPL-3.0-or-later
  */
 
+#undef G_LOG_DOMAIN
 #define G_LOG_DOMAIN "cc-applications-panel"
 
 #include <config.h>
diff --git a/panels/background/bg-recent-source.c b/panels/background/bg-recent-source.c
index 06e0b68df..c21dfc098 100644
--- a/panels/background/bg-recent-source.c
+++ b/panels/background/bg-recent-source.c
@@ -18,6 +18,7 @@
  * SPDX-License-Identifier: GPL-3.0-or-later
  */
 
+#undef G_LOG_DOMAIN
 #define G_LOG_DOMAIN "bg-recent-source"
 
 #include "bg-recent-source.h"
diff --git a/panels/background/cc-background-chooser.c b/panels/background/cc-background-chooser.c
index f8dd0fda9..fb8f337e5 100644
--- a/panels/background/cc-background-chooser.c
+++ b/panels/background/cc-background-chooser.c
@@ -18,6 +18,7 @@
  * SPDX-License-Identifier: GPL-3.0-or-later
  */
 
+#undef G_LOG_DOMAIN
 #define G_LOG_DOMAIN "cc-background-chooser"
 
 #include <glib/gi18n.h>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]