summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2017-05-16 21:58:35 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2017-05-16 21:58:35 +0200
commit75727592df7c286e48c267b7544be68ccbf6dc2c (patch)
treed70947eb1c4cdaf0b481711cde7d6f6e0ef44f9f
parenta96b7edb41cf10988846a09bfa5105bb31aba7f3 (diff)
downloadefl-75727592df7c286e48c267b7544be68ccbf6dc2c.tar.gz
examples: evas: fix else block by adding needed parenthesis
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);
-rw-r--r--src/examples/evas/evas-3d-shadows.c6
1 files 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;
}