mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
fix warnings (#648)
* fix unknown command line argument * fix warnings settings for gcc * fix -Wzero-as-null-pointer-constant * revert CMakeLists.txt
This commit is contained in:
parent
8f3e5e880c
commit
24931770d3
50 changed files with 69 additions and 61 deletions
|
|
@ -99,7 +99,7 @@ static bool initialize_gl(int width, int height) {
|
|||
|
||||
#ifndef __APPLE__
|
||||
glEnable(GL_DEBUG_OUTPUT);
|
||||
glDebugMessageCallback(gl_message_callback, 0);
|
||||
glDebugMessageCallback(gl_message_callback, nullptr);
|
||||
#endif
|
||||
|
||||
glViewport(0, 0, width, height);
|
||||
|
|
@ -402,7 +402,7 @@ public:
|
|||
return;
|
||||
}
|
||||
cursor = shape;
|
||||
// NULL cursor is valid for GLFW
|
||||
// nullptr cursor is valid for GLFW
|
||||
glfwSetCursor(window, standard_cursors[static_cast<int>(shape)]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue