Skip to content

Commit

Permalink
Fix strict prototype warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
derselbst committed Oct 6, 2024
1 parent 0487c51 commit 7abb5b2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/fluidsynth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1228,14 +1228,14 @@ int main(int argc, char **argv)
* print_usage
*/
void
print_usage()
print_usage(void)
{
fprintf(stderr, "Usage: fluidsynth [options] [soundfonts]\n");
fprintf(stderr, "Try -h for help.\n");
}

void
print_welcome()
print_welcome(void)
{
printf("FluidSynth runtime version %s\n"
"Copyright (C) 2000-2024 Peter Hanappe and others.\n"
Expand All @@ -1244,7 +1244,7 @@ print_welcome()
fluid_version_str());
}

void print_configure()
void print_configure(void)
{
puts("FluidSynth executable version " FLUIDSYNTH_VERSION);
puts("Sample type="
Expand Down
2 changes: 1 addition & 1 deletion src/gentables/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1)
cmake_minimum_required(VERSION 3.5)

# remove $CC from the current environment and by that force cmake to look for a (working) C compiler,
# which hopefully will be the host compiler
Expand Down
4 changes: 2 additions & 2 deletions src/midi/fluid_midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ fluid_midi_file_get_division(fluid_midi_file *midifile)
* @return New MIDI event structure or NULL when out of memory.
*/
fluid_midi_event_t *
new_fluid_midi_event()
new_fluid_midi_event(void)
{
fluid_midi_event_t *evt;
evt = FLUID_NEW(fluid_midi_event_t);
Expand Down Expand Up @@ -2702,7 +2702,7 @@ int fluid_player_get_midi_tempo(fluid_player_t *player)
* new_fluid_midi_parser
*/
fluid_midi_parser_t *
new_fluid_midi_parser()
new_fluid_midi_parser(void)
{
fluid_midi_parser_t *parser;
parser = FLUID_NEW(fluid_midi_parser_t);
Expand Down
4 changes: 2 additions & 2 deletions src/synth/fluid_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ fluid_mod_get_value(fluid_mod_t *mod, fluid_voice_t *voice)
* @return New allocated modulator or NULL if out of memory
*/
fluid_mod_t *
new_fluid_mod()
new_fluid_mod(void)
{
fluid_mod_t *mod = FLUID_NEW(fluid_mod_t);

Expand Down Expand Up @@ -511,7 +511,7 @@ delete_fluid_mod(fluid_mod_t *mod)
*
* Useful in low latency scenarios e.g. to allocate a modulator on the stack.
*/
size_t fluid_mod_sizeof()
size_t fluid_mod_sizeof(void)
{
return sizeof(fluid_mod_t);
}
Expand Down

0 comments on commit 7abb5b2

Please sign in to comment.