cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=635a2baf74d5d65d5ff20cdd0bf32b1bb0b3e6cb

commit 635a2baf74d5d65d5ff20cdd0bf32b1bb0b3e6cb
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Thu Dec 15 10:08:21 2016 -0800

    efl_debug: silent unused use of static variable.
---
 src/bin/efl/efl_debug.c        | 5 +++++
 src/bin/efl/efl_debug_common.h | 2 ++
 src/bin/efl/efl_debugd.c       | 1 +
 3 files changed, 8 insertions(+)

diff --git a/src/bin/efl/efl_debug.c b/src/bin/efl/efl_debug.c
index 12b3e92..428180e 100644
--- a/src/bin/efl/efl_debug.c
+++ b/src/bin/efl/efl_debug.c
@@ -16,6 +16,7 @@
  * if not, see <http://www.gnu.org/licenses/>.
  */
 
+#define DECLARE_OPS
 #include "efl_debug_common.h"
 
 static Eo *dialer;
@@ -272,5 +273,9 @@ main(int argc, char **argv)
    ecore_con_shutdown();
    ecore_shutdown();
    eina_shutdown();
+
+   (void) OP_HELO;
+   (void) OP_EVLG;
+
    return retval;
 }
diff --git a/src/bin/efl/efl_debug_common.h b/src/bin/efl/efl_debug_common.h
index fdb9e45..b355210 100644
--- a/src/bin/efl/efl_debug_common.h
+++ b/src/bin/efl/efl_debug_common.h
@@ -48,6 +48,7 @@ int _proto_read(unsigned char **buf, unsigned int *buf_size,
 #define IS_OP(x) memcmp(op, OP_ ## x, 4) == 0
 
 #define DECLARE_OP(x) static char OP_ ## x[4] = #x
+#ifdef DECLARE_OPS
 DECLARE_OP(LIST);
 DECLARE_OP(CLST);
 DECLARE_OP(PLON);
@@ -56,6 +57,7 @@ DECLARE_OP(EVON);
 DECLARE_OP(EVOF);
 DECLARE_OP(EVLG);
 DECLARE_OP(HELO);
+#endif
 
 Eina_Bool send_data(Eo *sock, const char op[static 4], const void *data, 
unsigned int len);
 Eina_Bool received_data(Eo *sock, void (*handle)(void *data, const char 
op[static 4], const Eina_Slice payload), const void *data);
diff --git a/src/bin/efl/efl_debugd.c b/src/bin/efl/efl_debugd.c
index 5c149d0..dfe175c 100644
--- a/src/bin/efl/efl_debugd.c
+++ b/src/bin/efl/efl_debugd.c
@@ -16,6 +16,7 @@
  * if not, see <http://www.gnu.org/licenses/>.
  */
 
+#define DECLARE_OPS
 #include "efl_debug_common.h"
 
 typedef struct _Client Client;

-- 


Reply via email to