From 0d2f672482fee91a9642a7cb6eb01fcdded79159 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 10 May 2009 22:13:24 +0000 Subject: Fixed compilation warnings with more recent GCC. --- glgrav.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'glgrav.cpp') diff --git a/glgrav.cpp b/glgrav.cpp index 3586e7d..8e7e6a7 100644 --- a/glgrav.cpp +++ b/glgrav.cpp @@ -31,6 +31,7 @@ static const char id[]="$Id$"; #include #include +#include static Config config; static vector mass; @@ -114,7 +115,7 @@ static void HandleCollision(Config::Collide collide, vector& del,vector& mv, Mass& m1, Mass& m2, int idx1, int idx2); static void SetOption(int opt, string text, bool flag); -static void GLPrint(char *fmt,...); +static void GLPrint(const char *fmt,...); int main(int argc, char *argv[]) @@ -934,7 +935,7 @@ static void Update(void) } -static void GLPrint(char *fmt,...) +static void GLPrint(const char *fmt,...) { char s[256]; va_list va; -- cgit v1.2.3