Skip to content

Commit e6f1ade

Browse files
committed
void(*)() fails callback check; use void(*)(void)
1 parent f0c920c commit e6f1ade

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/gui/about.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "osx/osx.h"
2323
#endif
2424

25-
void darktable_show_about_dialog()
25+
void darktable_show_about_dialog(void)
2626
{
2727
GtkWidget *dialog = gtk_about_dialog_new();
2828
gtk_widget_set_name (dialog, "about-dialog");

src/gui/about.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
along with darktable. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
void darktable_show_about_dialog();
19+
void darktable_show_about_dialog(void);

src/gui/preferences.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ static void init_tab_general(GtkWidget *dialog,
567567
///////////// end of gui and theme language selection
568568

569569

570-
void dt_gui_preferences_show()
570+
void dt_gui_preferences_show(void)
571571
{
572572
GtkWindow *win = GTK_WINDOW(dt_ui_main_window(darktable.gui->ui));
573573
_preferences_dialog =

src/gui/preferences.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#pragma once
2020

2121
/** shows the preferences dialog and blocks until it's closed. */
22-
void dt_gui_preferences_show();
22+
void dt_gui_preferences_show(void);
2323

2424
// return the widget for a given preference key
2525
GtkWidget *dt_gui_preferences_bool(GtkGrid *grid, const char *key, const guint col,

0 commit comments

Comments
 (0)