From e2fd52190aa3d280b913e39fbceef4fbe1b5237c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Mon, 27 Jan 2020 18:57:18 +0100 Subject: [PATCH] main: Fix "function declaration isn't a prototype" warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../src/file_storage.c:47:20: warning: function declaration isn’t a prototype [-Wstrict-prototypes] 47 | static const char *get_storage_path() | ^~~~~~~~~~~~~~~~ ../src/file_storage.c: In function ‘get_storage_path’: ../src/file_storage.c:47:20: warning: old-style function definition [-Wold-style-definition] ../src/file_storage.c: In function ‘file_storage_discover_users’: ../src/file_storage.c:270:9: warning: old-style function definition [-Wold-style-definition] 270 | GSList *file_storage_discover_users() | ^~~~~~~~~~~~~~~~ --- src/file_storage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/file_storage.c b/src/file_storage.c index 4aba2b9..70307f8 100644 --- a/src/file_storage.c +++ b/src/file_storage.c @@ -42,7 +42,7 @@ #define FILE_STORAGE_PATH "/var/lib/fprint" #define DIR_PERMS 0700 -static const char *get_storage_path() +static const char *get_storage_path(void) { const char *path; @@ -265,7 +265,7 @@ GSList *file_storage_discover_prints(FpDevice *dev, const char *username) return list; } -GSList *file_storage_discover_users() +GSList *file_storage_discover_users(void) { g_autoptr(GError) err = NULL; GSList *list = NULL;