From 75727592df7c286e48c267b7544be68ccbf6dc2c Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Tue, 16 May 2017 21:58:35 +0200 Subject: [PATCH] examples: evas: fix else block by adding needed parenthesis MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was broken since over a year. Happened during the automatic eo4 migration in f21ade6123b9053fca8d1632644c48525a99d6e0. Thanks goes to the gcc warning misleading-indentation: evas-3d-shadows.c:163:4: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] else ^~~~ evas-3d-shadows.c:165:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’ evas_canvas3d_node_look_at_set(scene->mediator, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 3.0, 0.0, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 5.0, 0.0); --- src/examples/evas/evas-3d-shadows.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/examples/evas/evas-3d-shadows.c b/src/examples/evas/evas-3d-shadows.c index 216557f58f..c67d1919f8 100644 --- a/src/examples/evas/evas-3d-shadows.c +++ b/src/examples/evas/evas-3d-shadows.c @@ -161,8 +161,10 @@ _animate_scene(void *data) if (angle > 360) angle = 0.0; } else - evas_canvas3d_node_position_set(scene->mediator, 0.0, 6.0, 12.0); - evas_canvas3d_node_look_at_set(scene->mediator, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 3.0, 0.0, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 5.0, 0.0); + { + evas_canvas3d_node_position_set(scene->mediator, 0.0, 6.0, 12.0); + evas_canvas3d_node_look_at_set(scene->mediator, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 3.0, 0.0, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 5.0, 0.0); + } return EINA_TRUE; }