Skip to content

Commit

Permalink
c: add missing voids to functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde committed Aug 24, 2024
1 parent 2ae8255 commit 92fce6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions glad/generator/c/templates/base_template.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,15 @@ 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 }};
{% endcall %}
{% 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 }};
Expand Down
2 changes: 1 addition & 1 deletion glad/generator/c/templates/loader/egl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 92fce6b

Please sign in to comment.