efl_debug: silent unused use of static variable.

This commit is contained in:
Cedric BAIL 2016-12-15 10:08:21 -08:00
parent cf62558402
commit 635a2baf74
3 changed files with 8 additions and 0 deletions

View File

@ -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;
}

View File

@ -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);

View File

@ -16,6 +16,7 @@
* if not, see <http://www.gnu.org/licenses/>.
*/
#define DECLARE_OPS
#include "efl_debug_common.h"
typedef struct _Client Client;