From 92fce6bd6407912a1168f043242c2f58059e0226 Mon Sep 17 00:00:00 2001 From: David Herberth Date: Sat, 24 Aug 2024 20:42:57 +0200 Subject: [PATCH] c: add missing voids to functions --- glad/generator/c/templates/base_template.c | 4 ++-- glad/generator/c/templates/loader/egl.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/glad/generator/c/templates/base_template.c b/glad/generator/c/templates/base_template.c index f3f4f48a..59deabe8 100644 --- a/glad/generator/c/templates/base_template.c +++ b/glad/generator/c/templates/base_template.c @@ -165,7 +165,7 @@ static void glad_{{ spec.name }}_resolve_aliases({{ template_utils.context_arg(d {% endif %} {# options.on_demand #} {% if options.debug %} -void gladInstall{{ feature_set.name|api }}Debug() { +void gladInstall{{ feature_set.name|api }}Debug(void) { {% for command in feature_set.commands|c_commands %} {% call template_utils.protect(command) %} glad_debug_{{ command.name }} = glad_debug_impl_{{ command.name }}; @@ -173,7 +173,7 @@ void gladInstall{{ feature_set.name|api }}Debug() { {% endfor %} } -void gladUninstall{{ feature_set.name|api }}Debug() { +void gladUninstall{{ feature_set.name|api }}Debug(void) { {% for command in feature_set.commands|c_commands %} {% call template_utils.protect(command) %} glad_debug_{{ command.name }} = glad_{{ command.name }}; diff --git a/glad/generator/c/templates/loader/egl.c b/glad/generator/c/templates/loader/egl.c index 1a3a47fb..4778c668 100644 --- a/glad/generator/c/templates/loader/egl.c +++ b/glad/generator/c/templates/loader/egl.c @@ -81,7 +81,7 @@ static GLADapiproc glad_egl_internal_loader_get_proc(const char *name) { } {% endif %} -void gladLoaderUnloadEGL() { +void gladLoaderUnloadEGL(void) { if (_egl_handle != NULL) { glad_close_dlopen_handle(_egl_handle); _egl_handle = NULL;