Corrected WARNING on ErrorCallback()
The default compiler flags on Ubuntu includes -Wformat -Wformat-security which is what gives this error. That flag is used as a precaution against introducing security related bugs.
This commit is contained in:
parent
26af48464b
commit
e1dd9f9cdd
@ -529,8 +529,8 @@ bool IsGamepadButtonUp(int gamepad, int button)
|
|||||||
// GLFW3 Error Callback, runs on GLFW3 error
|
// GLFW3 Error Callback, runs on GLFW3 error
|
||||||
static void ErrorCallback(int error, const char *description)
|
static void ErrorCallback(int error, const char *description)
|
||||||
{
|
{
|
||||||
printf(description);
|
//printf(description);
|
||||||
//fprintf(stderr, description);
|
fprintf(stderr, "%s", description);
|
||||||
}
|
}
|
||||||
|
|
||||||
// GLFW3 Keyboard Callback, runs on key pressed
|
// GLFW3 Keyboard Callback, runs on key pressed
|
||||||
|
Loading…
Reference in New Issue
Block a user