From 0f90a2e9f3fbfa4573311fadc9c3dc6f577de771 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 7 Jun 2015 21:08:03 +0200 Subject: [PATCH] FLIGHTGEAR_VERSION is always set. --- src/Main/main.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 090157762..b2372d457 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -410,12 +410,7 @@ int fgMainInit( int argc, char **argv ) logToFile(); } - std::string version; -#ifdef FLIGHTGEAR_VERSION - version = FLIGHTGEAR_VERSION; -#else - version = "unknown version"; -#endif + std::string version(FLIGHTGEAR_VERSION); SG_LOG( SG_GENERAL, SG_INFO, "FlightGear: Version " << version ); SG_LOG( SG_GENERAL, SG_INFO, "Built with " << SG_COMPILER_STR); -- 2.39.5