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;