From 9f8d9443a8b4275753b399b0d943cfdc1300509b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Val=C3=A9rian=20Sibille?= Date: Tue, 22 Oct 2024 14:39:51 +0200 Subject: [PATCH] Declare proper C-prototypes --- dr_meter/include/dr_stats.h | 2 +- dr_meter/include/sample_mean.h | 2 +- dr_plugin_gui/include/dr_meter_plugin_gui.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dr_meter/include/dr_stats.h b/dr_meter/include/dr_stats.h index a811bb3..c103292 100644 --- a/dr_meter/include/dr_stats.h +++ b/dr_meter/include/dr_stats.h @@ -21,7 +21,7 @@ typedef struct dr_stats_s dr_stats_t; dr_stats_t make_dr_stats(double dr, double peak, double rms); void zero_dr_stats(dr_stats_t* dr_stats); -dr_stats_t make_zero_dr_stats(); +dr_stats_t make_zero_dr_stats(void); dr_stats_t make_dB_dr_stats(dr_stats_t* dr_stats); #endif /* DR_METER_DR_STATS_H */ diff --git a/dr_meter/include/sample_mean.h b/dr_meter/include/sample_mean.h index 98bdd4d..486c2df 100644 --- a/dr_meter/include/sample_mean.h +++ b/dr_meter/include/sample_mean.h @@ -16,7 +16,7 @@ struct sample_mean_s typedef struct sample_mean_s sample_mean_t; -sample_mean_t make_sample_mean(); +sample_mean_t make_sample_mean(void); void reset_sample_mean(sample_mean_t* self); void observe_sample_mean(sample_mean_t* self, double sample_value); double get_sample_mean(sample_mean_t* self); diff --git a/dr_plugin_gui/include/dr_meter_plugin_gui.h b/dr_plugin_gui/include/dr_meter_plugin_gui.h index ebbed26..24523b8 100644 --- a/dr_plugin_gui/include/dr_meter_plugin_gui.h +++ b/dr_plugin_gui/include/dr_meter_plugin_gui.h @@ -10,8 +10,8 @@ struct DB_playItem_s; -int dr_meter_gui_start(); +int dr_meter_gui_start(void); struct DB_plugin_action_s* dr_meter_gui_get_actions(struct DB_playItem_s* item); -int dr_meter_gui_connect(); // connect this to DDB GTK and computing dr_meter plugins +int dr_meter_gui_connect(void); // connect this to DDB GTK and computing dr_meter plugins #endif /* DR_PLUGIN_GUI_DR_METER_PLUGIN_GUI_H */