summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2022-08-19 17:42:05 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2022-08-19 17:42:05 +0100
commit36782cc6fd738eb7efeb5dd523e5e1fb21c68499 (patch)
treefb3dcb54c2370730af0379f2c8e86f8bb60df018
parent5970778a89f33352b59da689cdb7d088555b1d53 (diff)
downloadlibrest-ebassi/small-fixes.tar.gz
Fix the declaration of the RestOAuth2Error quark functionebassi/small-fixes
The missing `void` breaks the strict prototypes warning. In C, a function with no arguments and a function with `void` as an argument are fundamentally different; the former can be called with any argument, while the latter can only be called with no arguments. Since rest_oauth2_error_quark() is defined with `void` by the G_DEFINE_QUARK macro, its declaration should be made to match.
-rw-r--r--rest/rest-oauth2-proxy.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/rest/rest-oauth2-proxy.h b/rest/rest-oauth2-proxy.h
index c63d33e..71651ca 100644
--- a/rest/rest-oauth2-proxy.h
+++ b/rest/rest-oauth2-proxy.h
@@ -42,8 +42,8 @@ typedef enum {
REST_OAUTH2_ERROR_ACCESS_TOKEN_EXPIRED,
} RestOAuth2Error;
-#define REST_OAUTH2_ERROR rest_oauth2_error_quark ()
-GQuark rest_oauth2_error_quark ();
+#define REST_OAUTH2_ERROR (rest_oauth2_error_quark())
+GQuark rest_oauth2_error_quark (void);
RestOAuth2Proxy *rest_oauth2_proxy_new (const gchar *authurl,
const gchar *tokenurl,