examples: evas: fix else block by adding needed parenthesis
authorStefan Schmidt <stefan@osg.samsung.com>
Tue, 16 May 2017 19:58:35 +0000 (21:58 +0200)
committerStefan Schmidt <stefan@osg.samsung.com>
Tue, 16 May 2017 19:58:35 +0000 (21:58 +0200)
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

index 216557f..c67d191 100644 (file)
@@ -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;
 }