From d72b17f3a240d0bdba8064a247dfe1f914a41296 Mon Sep 17 00:00:00 2001 From: dhewg Date: Fri, 2 Dec 2011 16:19:21 +0100 Subject: [PATCH] Fix -Wunused-function warnings defined but not used --- d3xp/ai/AI_pathing.cpp | 2 ++ game/ai/AI_pathing.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/d3xp/ai/AI_pathing.cpp b/d3xp/ai/AI_pathing.cpp index 886d594..600a92b 100644 --- a/d3xp/ai/AI_pathing.cpp +++ b/d3xp/ai/AI_pathing.cpp @@ -1332,6 +1332,7 @@ HeightForTrajectory Returns the maximum hieght of a given trajectory ===================== */ +#if 0 static float HeightForTrajectory( const idVec3 &start, float zVel, float gravity ) { float maxHeight, t; @@ -1341,6 +1342,7 @@ static float HeightForTrajectory( const idVec3 &start, float zVel, float gravity return maxHeight; } +#endif /* ===================== diff --git a/game/ai/AI_pathing.cpp b/game/ai/AI_pathing.cpp index c67135a..3a48505 100644 --- a/game/ai/AI_pathing.cpp +++ b/game/ai/AI_pathing.cpp @@ -1331,6 +1331,7 @@ HeightForTrajectory Returns the maximum hieght of a given trajectory ===================== */ +#if 0 static float HeightForTrajectory( const idVec3 &start, float zVel, float gravity ) { float maxHeight, t; @@ -1340,6 +1341,7 @@ static float HeightForTrajectory( const idVec3 &start, float zVel, float gravity return maxHeight; } +#endif /* =====================