From: LMH Date: Wed, 6 Feb 2013 19:37:02 +0000 (-1000) Subject: Bug 938: Fixed some compiler warnings under Mac OS X X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4889a6a1d3a46298e4c39dfb042360475956acbe;p=supertux.git Bug 938: Fixed some compiler warnings under Mac OS X --- diff --git a/src/supertux/collision.cpp b/src/supertux/collision.cpp index 95fbbbbc6..4e1c601d5 100644 --- a/src/supertux/collision.cpp +++ b/src/supertux/collision.cpp @@ -54,7 +54,7 @@ bool rectangle_aatriangle(Constraints* constraints, const Rectf& rect, return false; Vector normal; - float c; + float c = 0.0; Vector p1; Rectf area; switch(triangle.dir & AATriangle::DEFORM_MASK) { diff --git a/src/supertux/tile.cpp b/src/supertux/tile.cpp index d29a6c509..b81595308 100644 --- a/src/supertux/tile.cpp +++ b/src/supertux/tile.cpp @@ -271,8 +271,8 @@ bool Tile::check_position_unisolid (const Rectf& obj_bbox, float gradient; float delta_x; float delta_y; - float obj_x; - float obj_y; + float obj_x = 0.0; + float obj_y = 0.0; /* If this is not a slope, this is - again - easy */ if (!this->is_slope())