Commit 6d6a6784 authored by Guido Gunther's avatar Guido Gunther

meson: Warn about old-style function definitions

parent 3dfb5bfc
......@@ -48,6 +48,7 @@ test_c_args = [
'-Wno-strict-aliasing',
'-Wno-uninitialized',
'-Wno-unused-parameter',
'-Wold-style-definition',
'-Wpointer-arith',
'-Wredundant-decls',
'-Wshadow',
......
......@@ -193,7 +193,7 @@ phosh_auth_authenticate_async_finish (PhoshAuth *self,
guint
phosh_auth_get_pin_length ()
phosh_auth_get_pin_length (void)
{
return PIN_LENGTH;
}
......@@ -270,7 +270,7 @@ phosh_favorites_init (PhoshFavorites *self)
GtkWidget *
phosh_favorites_new ()
phosh_favorites_new (void)
{
return g_object_new (PHOSH_TYPE_FAVORITES, NULL);
}
......@@ -190,7 +190,7 @@ phosh_wayland_init (PhoshWayland *self)
PhoshWayland *
phosh_wayland_get_default ()
phosh_wayland_get_default (void)
{
static PhoshWayland *instance;
......
......@@ -402,7 +402,7 @@ css_setup (PhoshShell *self)
static void
env_setup ()
env_setup (void)
{
g_setenv ("XDG_CURRENT_DESKTOP", "GNOME", TRUE);
}
......@@ -634,7 +634,7 @@ phosh_shell_get_usable_area (PhoshShell *self, gint *x, gint *y, gint *width, gi
PhoshShell *
phosh_shell_get_default ()
phosh_shell_get_default (void)
{
static PhoshShell *instance;
......
......@@ -198,7 +198,7 @@ phosh_settings_init (PhoshSettings *self)
}
GtkWidget *
phosh_settings_new ()
phosh_settings_new (void)
{
return g_object_new (PHOSH_TYPE_SETTINGS, NULL);
}
......@@ -132,7 +132,7 @@ brightness_set (int brightness)
void
brightness_dispose ()
brightness_dispose (void)
{
g_clear_pointer (&brightness_proxy, g_object_unref);
}
......@@ -82,7 +82,7 @@ on_name_acquired (GDBusConnection *connection,
GcrSystemPrompter *
phosh_system_prompter_register ()
phosh_system_prompter_register (void)
{
_prompter = gcr_system_prompter_new (GCR_SYSTEM_PROMPTER_SINGLE, 0);
......@@ -102,7 +102,7 @@ phosh_system_prompter_register ()
void
phosh_system_prompter_unregister()
phosh_system_prompter_unregister(void)
{
if (_prompter) {
gcr_system_prompter_unregister (_prompter, TRUE);
......
......@@ -3,7 +3,7 @@
#include <glib.h>
gpointer
phosh_shell_get_default ()
phosh_shell_get_default (void)
{
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment