Pārlūkot izejas kodu

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.
pull/2/head
Ray pirms 11 gadiem
vecāks
revīzija
e1dd9f9cdd
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. +3
    -3
      src/core.c

+ 3
- 3
src/core.c Parādīt failu

@ -529,8 +529,8 @@ bool IsGamepadButtonUp(int gamepad, int button)
// GLFW3 Error Callback, runs on GLFW3 error
static void ErrorCallback(int error, const char *description)
{
printf(description);
o">//fprintf(stderr, description);
o">//printf(description);
fprintf(stderr, "%s", description);
}
// GLFW3 Keyboard Callback, runs on key pressed
@ -688,4 +688,4 @@ static void TakeScreenshot()
free(imgDataPixel);
shotNum++;
}
}

Notiek ielāde…
Atcelt
Saglabāt