File fix-gcc15.patch of Package tuxomania
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 62966df..ef09eaa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required (VERSION 2.6)
+cmake_minimum_required (VERSION 3.5)
project (tuxomania)
INCLUDE(cpack/package.cmake)
diff --git a/src/view/ViewContext.cpp b/src/view/ViewContext.cpp
index 943ff12..475ce37 100644
--- a/src/view/ViewContext.cpp
+++ b/src/view/ViewContext.cpp
@@ -54,6 +54,7 @@ GLuint ViewContext::getTexture(unsigned int index) const
{
return this->textures[index];
}
+ return -1;
}
bool ViewContext::loadTexture(std::string imageName, unsigned int index)