From a51b54afc512e95484d339acd9ea53581a39336b Mon Sep 17 00:00:00 2001 From: mike_m Date: Sat, 22 Oct 2011 23:33:23 +0000 Subject: [PATCH] evas: Fix a warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit CC evas_cserve_tool.o evas_cserve_main.c: In function ‘message’: evas_cserve_main.c:993:14: warning: braces around scalar initializer evas_cserve_main.c:993:14: warning: (near initialization for ‘lopt.degree’) evas_cserve_main.c:993:14: warning: excess elements in scalar initializer evas_cserve_main.c:993:14: warning: (near initialization for ‘lopt.degree’) evas_cserve_main.c:993:14: warning: excess elements in scalar initializer evas_cserve_main.c:993:14: warning: (near initialization for ‘lopt.degree’) evas_cserve_main.c:993:14: warning: excess elements in scalar initializer evas_cserve_main.c:993:14: warning: (near initialization for ‘lopt.degree’) Signed-off-by: Mike McCormack git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@64310 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/evas_cserve_main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/evas_cserve_main.c b/src/bin/evas_cserve_main.c index 57ea38b..7d4d95a 100644 --- a/src/bin/evas_cserve_main.c +++ b/src/bin/evas_cserve_main.c @@ -990,9 +990,10 @@ message(void *fdata __UNUSED__, Server *s __UNUSED__, Client *c, int opcode, int Op_Load *rep; Op_Load_Reply msg; Img *img; - RGBA_Image_Loadopts lopt = {0, 0.0, 0, 0, {0, 0, 0, 0}, 0}; + RGBA_Image_Loadopts lopt; char *file = NULL, *key = NULL; - + + memset(&lopt, 0, sizeof lopt); DBG("OP_LOAD %i", c->pid); rep = (Op_Load *)tdata; file = (char*) (data + sizeof(Op_Load)); -- 2.7.4