[gegl] operations/core/json: Silence -Wunused-const-variable=



commit d44e7c7c546d68c5928c5ef94c7242141a63608a
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Mar 20 10:50:18 2017 +0100

    operations/core/json: Silence -Wunused-const-variable=

 operations/core/json.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/operations/core/json.c b/operations/core/json.c
index bbf0ce1..04c0987 100644
--- a/operations/core/json.c
+++ b/operations/core/json.c
@@ -597,11 +597,13 @@ json_register_operations(GTypeModule *module)
 }
 
 
+#ifndef GEGL_OP_BUNDLE
 /*** Module registration ***/
 static const GeglModuleInfo modinfo =
 {
   GEGL_MODULE_ABI_VERSION
 };
+#endif
 
 /* prototypes added to silence warnings from gcc for -Wmissing-prototypes*/
 gboolean                gegl_module_register (GTypeModule *module);


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