fixed compiler warnings reported by gcc/clang

* changed some catch blocks to use exception references instead of value types
 * fixed missing use of SCR_WIDTH/SCR_HEIGHT for glfwCreateWindow
 * fixed implicit numeric type casts regarding signedness
 * removed unused variables

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig
2020-03-18 18:34:17 +01:00
parent 3fe2e0ad4a
commit dcdf94fce7
14 changed files with 32 additions and 44 deletions

View File

@@ -40,7 +40,7 @@ public:
vertexCode = vShaderStream.str();
fragmentCode = fShaderStream.str();
}
catch (std::ifstream::failure e)
catch (std::ifstream::failure& e)
{
std::cout << "ERROR::SHADER::FILE_NOT_SUCCESFULLY_READ" << std::endl;
}
@@ -118,4 +118,4 @@ private:
}
}
};
#endif
#endif