Use strict function prototypes

Fixes clang error:
error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
This commit is contained in:
Luofan Chen
2023-02-09 13:15:23 +08:00
parent 3b861d5f79
commit 130315ce8d
9 changed files with 13 additions and 13 deletions

View File

@@ -39,7 +39,7 @@ check_for_gl_error(void UNUSED *ret, const char *name, GLADapiproc UNUSED funcpt
}
void
gl_init() {
gl_init(void) {
static bool glad_loaded = false;
if (!glad_loaded) {
int gl_version = gladLoadGL(glfwGetProcAddress);