plug-ins: fix build warnings.

Fixes several missing declaration warnings because in fact of missing include,
such as:

> warning: no previous declaration for ‘console_editor_new’ [-Wmissing-declarations]

Fixes 2 old-style definitions:

> warning: old-style function definition [-Wold-style-definition]
This commit is contained in:
Jehan 2023-06-25 23:43:40 +02:00
parent f0ab126563
commit 6a9838c804
2 changed files with 5 additions and 3 deletions

View File

@ -19,6 +19,8 @@
#include <gtk/gtk.h>
#include "script-fu-console-editor.h"
/* ConsoleEditor
@ -40,7 +42,7 @@
*/
GtkWidget *
console_editor_new ()
console_editor_new (void)
{
return gtk_entry_new ();
}

View File

@ -35,7 +35,7 @@
GtkTextBuffer *
console_total_history_new ()
console_total_history_new (void)
{
return gtk_text_buffer_new (NULL);
}