From da5b329d8aded1526d4e4ec9d49c2f6359a4ee97 Mon Sep 17 00:00:00 2001 From: neoraider Date: Wed, 31 Oct 2007 23:15:01 +0000 Subject: libneofx: Fixed some warnings with -Wall --- math.c | 8 ++++---- physics.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/math.c b/math.c index 51f5c13..6343c96 100644 --- a/math.c +++ b/math.c @@ -76,22 +76,22 @@ int VectorEqual(VECTOR v1, VECTOR v2) { } MATRIX MatrixIdentity() { - MATRIX m = { + MATRIX m = {.f = { 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 - }; + }}; return m; } MATRIX MatrixMul(MATRIX m1, MATRIX m2) { - MATRIX m = { + MATRIX m = {.f = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 - }; + }}; short i, j, k; for(i = 0; i < 4; i++) diff --git a/physics.c b/physics.c index cea066d..0c676f0 100644 --- a/physics.c +++ b/physics.c @@ -2,7 +2,7 @@ #include #include -static VECTOR gravitation = {0, -9.8, 0}; +static VECTOR gravitation = {{0, -9.8, 0}}; void SetGravitation(VECTOR v) { -- cgit v1.2.3