Skip to content

Commit

Permalink
Merge pull request #952 from omar-polo/master
Browse files Browse the repository at this point in the history
add a few (void) to please some compilers
  • Loading branch information
farindk authored Oct 9, 2023
2 parents 01057a6 + 31980cc commit 523230b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libheif/heif.h
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ LIBHEIF_API
struct heif_error heif_init(struct heif_init_params*);

LIBHEIF_API
void heif_deinit();
void heif_deinit(void);


// --- Plugins are currently only supported on Unix platforms.
Expand Down Expand Up @@ -533,7 +533,7 @@ struct heif_error heif_unload_plugin(const struct heif_plugin_info* plugin);
// This includes the paths specified in the environment variable LIBHEIF_PLUGIN_PATHS and the built-in path
// (if not overridden by the environment variable).
LIBHEIF_API
const char*const* heif_get_plugin_directories();
const char*const* heif_get_plugin_directories(void);

LIBHEIF_API
void heif_free_plugin_directories(const char*const*);
Expand Down Expand Up @@ -1167,7 +1167,7 @@ struct heif_error heif_image_handle_get_nclx_color_profile(const struct heif_ima
// Do not fill values for higher versions as these might be outside the allocated structure size.
// May return NULL.
LIBHEIF_API
struct heif_color_profile_nclx* heif_nclx_color_profile_alloc();
struct heif_color_profile_nclx* heif_nclx_color_profile_alloc(void);

LIBHEIF_API
void heif_nclx_color_profile_free(struct heif_color_profile_nclx* nclx_profile);
Expand Down Expand Up @@ -1387,7 +1387,7 @@ struct heif_decoding_options
// Note: you should always get the decoding options through this function since the
// option structure may grow in size in future versions.
LIBHEIF_API
struct heif_decoding_options* heif_decoding_options_alloc();
struct heif_decoding_options* heif_decoding_options_alloc(void);

LIBHEIF_API
void heif_decoding_options_free(struct heif_decoding_options*);
Expand Down Expand Up @@ -1914,7 +1914,7 @@ struct heif_encoding_options
};

LIBHEIF_API
struct heif_encoding_options* heif_encoding_options_alloc();
struct heif_encoding_options* heif_encoding_options_alloc(void);

LIBHEIF_API
void heif_encoding_options_free(struct heif_encoding_options*);
Expand Down

0 comments on commit 523230b

Please sign in to comment.