From 196cc38da19b867eaa9419343dd6ecd8212af354 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 8 Oct 2012 19:48:26 +0300 Subject: Fix compilation errors and warnings in different modes. --- src/client.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 5bf560d32..66a895264 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -798,6 +798,7 @@ void Client::gameClear() int Client::testsExec() const { +#ifdef USE_OPENGL if (mOptions.test.empty()) { TestMain test; @@ -808,6 +809,9 @@ int Client::testsExec() const TestLauncher launcher(mOptions.test); return launcher.exec(); } +#else + return 0; +#endif } int Client::gameExec() -- cgit v1.2.3-60-g2f50