X-Git-Url: https://git.octo.it/?p=routeros-api.git;a=blobdiff_plain;f=src%2Fmain.c;h=d35c30c1e5687da44979157ece95c806aac9b347;hp=d492b48767d45cf135310ce69f2c11eda3dcfc7a;hb=8c609b7cc4cf4adb1d256ee34d07f1ccb385ba03;hpb=77cff5db667e7c1d62b697161f0f7176a2fab390 diff --git a/src/main.c b/src/main.c index d492b48..d35c30c 100644 --- a/src/main.c +++ b/src/main.c @@ -52,6 +52,10 @@ # define ros_debug(...) /**/ #endif +#if !__GNUC__ +# define __attribute__(x) /**/ +#endif + /* FIXME */ char *strdup (const char *); @@ -635,8 +639,9 @@ static int create_socket (const char *node, const char *service) /* {{{ */ return (-1); } /* }}} int create_socket */ -static int login2_handler (ros_connection_t *c, const ros_reply_t *r, /* {{{ */ - void *user_data) +static int login2_handler (__attribute__((unused)) ros_connection_t *c, /* {{{ */ + const ros_reply_t *r, + __attribute__((unused)) void *user_data) { if (r == NULL) return (EINVAL);