From ae25f82299ccc2872918346b937a65eb41046b9b Mon Sep 17 00:00:00 2001 From: erg Date: Wed, 4 Aug 2010 15:15:50 +0000 Subject: [PATCH] Add include of glexpose.h; remove unused variable and function --- cmd/smyrna/main.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cmd/smyrna/main.c b/cmd/smyrna/main.c index 8980aa30a..fd460336a 100755 --- a/cmd/smyrna/main.c +++ b/cmd/smyrna/main.c @@ -39,6 +39,7 @@ #include "libintl.h" #endif #include +#include "glexpose.h" #include "glutrender.h" #ifdef HAVE_GETOPT_H @@ -158,6 +159,7 @@ void display() glutSwapBuffers(); } +#if UNUSED static void glutMode() { glutInitWindowSize(512,512); @@ -167,7 +169,7 @@ static void glutMode() glutMainLoop(); // Infinite event loop } - +#endif static void windowedMode(int argc, char *argv[]) { @@ -218,10 +220,6 @@ static void windowedMode(int argc, char *argv[]) int main(int argc, char *argv[]) { - char *initFileName; - - - smyrnaDir = getenv("SMYRNA_PATH"); if (!smyrnaDir) { #ifdef _WIN32 -- 2.40.0