Przeglądaj źródła

Silenced some unused argument warnings.

default 2 lat temu
rodzic
commit
f7015019d3
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      mastoapi.c

+ 5 - 0
mastoapi.c

@@ -2486,6 +2486,11 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
 int mastoapi_delete_handler(const xs_dict *req, const char *q_path,
 int mastoapi_delete_handler(const xs_dict *req, const char *q_path,
                              char **body, int *b_size, char **ctype) {
                              char **body, int *b_size, char **ctype) {
 
 
+    (void)req;
+    (void)body;
+    (void)b_size;
+    (void)ctype;
+
     if (!xs_startswith(q_path, "/api/v1/") && !xs_startswith(q_path, "/api/v2/"))
     if (!xs_startswith(q_path, "/api/v1/") && !xs_startswith(q_path, "/api/v2/"))
         return 0;
         return 0;