Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In file included from tox.c:178:0:
- tox_callbacks.h: In function ‘callback_group_invite’:
- tox_callbacks.h:150:15: warning: passing argument 3 of ‘tox_join_groupchat’ discards ‘const’ qualifier from pointer target type
- int gid = tox_join_groupchat(tox, fid, group_public_key);
- ^
- In file included from main.h:12:0,
- from tox.c:1:
- /usr/include/tox/tox.h:433:5: note: expected ‘uint8_t *’ but argument is of type ‘const uint8_t *’
- int tox_join_groupchat(Tox *tox, int32_t friendnumber, uint8_t *friend_group_public_key);
- ^
- In file included from tox.c:298:0:
- tox_av.h: In function ‘av_start’:
- tox_av.h:11:17: error: ‘ToxAvCodecSettings’ has no member named ‘max_video_width’
- settings.max_video_width = max_video_width;
- ^
- tox_av.h:12:17: error: ‘ToxAvCodecSettings’ has no member named ‘max_video_height’
- settings.max_video_height = max_video_height;
- ^
- In file included from tox.c:298:0:
- tox_av.h: In function ‘set_av_callbacks’:
- tox_av.h:658:5: warning: passing argument 1 of ‘toxav_register_callstate_callback’ from incompatible pointer type
- toxav_register_callstate_callback(av, callback_av_invite, av_OnInvite, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAVCallback’ but argument is of type ‘struct ToxAv *’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:658:5: error: incompatible type for argument 2 of ‘toxav_register_callstate_callback’
- toxav_register_callstate_callback(av, callback_av_invite, av_OnInvite, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAvCallbackID’ but argument is of type ‘void (*)(void *, int32_t, void *)’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:658:5: error: too many arguments to function ‘toxav_register_callstate_callback’
- toxav_register_callstate_callback(av, callback_av_invite, av_OnInvite, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: declared here
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:659:5: warning: passing argument 1 of ‘toxav_register_callstate_callback’ from incompatible pointer type
- toxav_register_callstate_callback(av, callback_av_start, av_OnStart, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAVCallback’ but argument is of type ‘struct ToxAv *’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:659:5: error: incompatible type for argument 2 of ‘toxav_register_callstate_callback’
- toxav_register_callstate_callback(av, callback_av_start, av_OnStart, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAvCallbackID’ but argument is of type ‘void (*)(void *, int32_t, void *)’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:659:5: warning: passing argument 3 of ‘toxav_register_callstate_callback’ makes pointer from integer without a cast
- toxav_register_callstate_callback(av, callback_av_start, av_OnStart, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘void *’ but argument is of type ‘int’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:659:5: error: too many arguments to function ‘toxav_register_callstate_callback’
- toxav_register_callstate_callback(av, callback_av_start, av_OnStart, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: declared here
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:660:5: warning: passing argument 1 of ‘toxav_register_callstate_callback’ from incompatible pointer type
- toxav_register_callstate_callback(av, callback_av_cancel, av_OnCancel, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAVCallback’ but argument is of type ‘struct ToxAv *’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:660:5: error: incompatible type for argument 2 of ‘toxav_register_callstate_callback’
- toxav_register_callstate_callback(av, callback_av_cancel, av_OnCancel, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAvCallbackID’ but argument is of type ‘void (*)(void *, int32_t, void *)’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:660:5: warning: passing argument 3 of ‘toxav_register_callstate_callback’ makes pointer from integer without a cast
- toxav_register_callstate_callback(av, callback_av_cancel, av_OnCancel, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘void *’ but argument is of type ‘int’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:660:5: error: too many arguments to function ‘toxav_register_callstate_callback’
- toxav_register_callstate_callback(av, callback_av_cancel, av_OnCancel, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: declared here
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:661:5: warning: passing argument 1 of ‘toxav_register_callstate_callback’ from incompatible pointer type
- toxav_register_callstate_callback(av, callback_av_reject, av_OnReject, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAVCallback’ but argument is of type ‘struct ToxAv *’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:661:5: error: incompatible type for argument 2 of ‘toxav_register_callstate_callback’
- toxav_register_callstate_callback(av, callback_av_reject, av_OnReject, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAvCallbackID’ but argument is of type ‘void (*)(void *, int32_t, void *)’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:661:5: warning: passing argument 3 of ‘toxav_register_callstate_callback’ makes pointer from integer without a cast
- toxav_register_callstate_callback(av, callback_av_reject, av_OnReject, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘void *’ but argument is of type ‘int’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:661:5: error: too many arguments to function ‘toxav_register_callstate_callback’
- toxav_register_callstate_callback(av, callback_av_reject, av_OnReject, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: declared here
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:662:5: warning: passing argument 1 of ‘toxav_register_callstate_callback’ from incompatible pointer type
- toxav_register_callstate_callback(av, callback_av_end, av_OnEnd, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAVCallback’ but argument is of type ‘struct ToxAv *’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:662:5: error: incompatible type for argument 2 of ‘toxav_register_callstate_callback’
- toxav_register_callstate_callback(av, callback_av_end, av_OnEnd, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAvCallbackID’ but argument is of type ‘void (*)(void *, int32_t, void *)’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:662:5: warning: passing argument 3 of ‘toxav_register_callstate_callback’ makes pointer from integer without a cast
- toxav_register_callstate_callback(av, callback_av_end, av_OnEnd, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘void *’ but argument is of type ‘int’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:662:5: error: too many arguments to function ‘toxav_register_callstate_callback’
- toxav_register_callstate_callback(av, callback_av_end, av_OnEnd, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: declared here
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:664:5: warning: passing argument 1 of ‘toxav_register_callstate_callback’ from incompatible pointer type
- toxav_register_callstate_callback(av, callback_av_ringing, av_OnRinging, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAVCallback’ but argument is of type ‘struct ToxAv *’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:664:5: error: incompatible type for argument 2 of ‘toxav_register_callstate_callback’
- toxav_register_callstate_callback(av, callback_av_ringing, av_OnRinging, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAvCallbackID’ but argument is of type ‘void (*)(void *, int32_t, void *)’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:664:5: warning: passing argument 3 of ‘toxav_register_callstate_callback’ makes pointer from integer without a cast
- toxav_register_callstate_callback(av, callback_av_ringing, av_OnRinging, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘void *’ but argument is of type ‘int’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:664:5: error: too many arguments to function ‘toxav_register_callstate_callback’
- toxav_register_callstate_callback(av, callback_av_ringing, av_OnRinging, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: declared here
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:665:5: warning: passing argument 1 of ‘toxav_register_callstate_callback’ from incompatible pointer type
- toxav_register_callstate_callback(av, callback_av_starting, av_OnStarting, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAVCallback’ but argument is of type ‘struct ToxAv *’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:665:5: error: incompatible type for argument 2 of ‘toxav_register_callstate_callback’
- toxav_register_callstate_callback(av, callback_av_starting, av_OnStarting, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAvCallbackID’ but argument is of type ‘void (*)(void *, int32_t, void *)’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:665:5: warning: passing argument 3 of ‘toxav_register_callstate_callback’ makes pointer from integer without a cast
- toxav_register_callstate_callback(av, callback_av_starting, av_OnStarting, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘void *’ but argument is of type ‘int’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:665:5: error: too many arguments to function ‘toxav_register_callstate_callback’
- toxav_register_callstate_callback(av, callback_av_starting, av_OnStarting, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: declared here
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:666:5: warning: passing argument 1 of ‘toxav_register_callstate_callback’ from incompatible pointer type
- toxav_register_callstate_callback(av, callback_av_ending, av_OnEnding, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAVCallback’ but argument is of type ‘struct ToxAv *’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:666:5: error: incompatible type for argument 2 of ‘toxav_register_callstate_callback’
- toxav_register_callstate_callback(av, callback_av_ending, av_OnEnding, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAvCallbackID’ but argument is of type ‘void (*)(void *, int32_t, void *)’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:666:5: warning: passing argument 3 of ‘toxav_register_callstate_callback’ makes pointer from integer without a cast
- toxav_register_callstate_callback(av, callback_av_ending, av_OnEnding, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘void *’ but argument is of type ‘int’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:666:5: error: too many arguments to function ‘toxav_register_callstate_callback’
- toxav_register_callstate_callback(av, callback_av_ending, av_OnEnding, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: declared here
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:668:5: warning: passing argument 1 of ‘toxav_register_callstate_callback’ from incompatible pointer type
- toxav_register_callstate_callback(av, callback_av_requesttimeout, av_OnRequestTimeout, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAVCallback’ but argument is of type ‘struct ToxAv *’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:668:5: error: incompatible type for argument 2 of ‘toxav_register_callstate_callback’
- toxav_register_callstate_callback(av, callback_av_requesttimeout, av_OnRequestTimeout, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAvCallbackID’ but argument is of type ‘void (*)(void *, int32_t, void *)’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:668:5: warning: passing argument 3 of ‘toxav_register_callstate_callback’ makes pointer from integer without a cast
- toxav_register_callstate_callback(av, callback_av_requesttimeout, av_OnRequestTimeout, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘void *’ but argument is of type ‘int’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:668:5: error: too many arguments to function ‘toxav_register_callstate_callback’
- toxav_register_callstate_callback(av, callback_av_requesttimeout, av_OnRequestTimeout, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: declared here
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:669:5: warning: passing argument 1 of ‘toxav_register_callstate_callback’ from incompatible pointer type
- toxav_register_callstate_callback(av, callback_av_peertimeout, av_OnPeerTimeout, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAVCallback’ but argument is of type ‘struct ToxAv *’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:669:5: error: incompatible type for argument 2 of ‘toxav_register_callstate_callback’
- toxav_register_callstate_callback(av, callback_av_peertimeout, av_OnPeerTimeout, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAvCallbackID’ but argument is of type ‘void (*)(void *, int32_t, void *)’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:669:5: warning: passing argument 3 of ‘toxav_register_callstate_callback’ makes pointer from integer without a cast
- toxav_register_callstate_callback(av, callback_av_peertimeout, av_OnPeerTimeout, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: expected ‘void *’ but argument is of type ‘int’
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:669:5: error: too many arguments to function ‘toxav_register_callstate_callback’
- toxav_register_callstate_callback(av, callback_av_peertimeout, av_OnPeerTimeout, NULL);
- ^
- In file included from main.h:13:0,
- from tox.c:1:
- /usr/include/tox/toxav.h:156:6: note: declared here
- void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
- ^
- In file included from tox.c:298:0:
- tox_av.h:672:5: warning: implicit declaration of function ‘toxav_register_audio_recv_callback’ [-Wimplicit-function-declaration]
- toxav_register_audio_recv_callback(av, callback_av_audio);
- ^
- tox_av.h:673:5: warning: implicit declaration of function ‘toxav_register_video_recv_callback’ [-Wimplicit-function-declaration]
- toxav_register_video_recv_callback(av, callback_av_video);
- ^
- tox.c: In function ‘set_callbacks’:
- tox.c:316:5: warning: passing argument 2 of ‘tox_callback_friend_message’ from incompatible pointer type
- tox_callback_friend_message(tox, callback_friend_message, NULL);
- ^
- In file included from main.h:12:0,
- from tox.c:1:
- /usr/include/tox/tox.h:298:6: note: expected ‘void (*)(struct Tox *, int32_t, uint8_t *, uint16_t, void *)’ but argument is of type ‘void (*)(struct Tox *, int, const uint8_t *, uint16_t, void *)’
- void tox_callback_friend_message(Tox *tox, void (*function)(Tox *tox, int32_t, uint8_t *, uint16_t, void *),
- ^
- tox.c:317:5: warning: passing argument 2 of ‘tox_callback_friend_action’ from incompatible pointer type
- tox_callback_friend_action(tox, callback_friend_action, NULL);
- ^
- In file included from main.h:12:0,
- from tox.c:1:
- /usr/include/tox/tox.h:304:6: note: expected ‘void (*)(struct Tox *, int32_t, uint8_t *, uint16_t, void *)’ but argument is of type ‘void (*)(struct Tox *, int, const uint8_t *, uint16_t, void *)’
- void tox_callback_friend_action(Tox *tox, void (*function)(Tox *tox, int32_t, uint8_t *, uint16_t, void *),
- ^
- tox.c:318:5: warning: passing argument 2 of ‘tox_callback_name_change’ from incompatible pointer type
- tox_callback_name_change(tox, callback_name_change, NULL);
- ^
- In file included from main.h:12:0,
- from tox.c:1:
- /usr/include/tox/tox.h:311:6: note: expected ‘void (*)(struct Tox *, int32_t, uint8_t *, uint16_t, void *)’ but argument is of type ‘void (*)(struct Tox *, int, const uint8_t *, uint16_t, void *)’
- void tox_callback_name_change(Tox *tox, void (*function)(Tox *tox, int32_t, uint8_t *, uint16_t, void *),
- ^
- tox.c:319:5: warning: passing argument 2 of ‘tox_callback_status_message’ from incompatible pointer type
- tox_callback_status_message(tox, callback_status_message, NULL);
- ^
- In file included from main.h:12:0,
- from tox.c:1:
- /usr/include/tox/tox.h:318:6: note: expected ‘void (*)(struct Tox *, int32_t, uint8_t *, uint16_t, void *)’ but argument is of type ‘void (*)(struct Tox *, int, const uint8_t *, uint16_t, void *)’
- void tox_callback_status_message(Tox *tox, void (*function)(Tox *tox, int32_t, uint8_t *, uint16_t, void *),
- ^
- tox.c:325:5: warning: passing argument 2 of ‘tox_callback_group_invite’ from incompatible pointer type
- tox_callback_group_invite(tox, callback_group_invite, NULL);
- ^
- In file included from main.h:12:0,
- from tox.c:1:
- /usr/include/tox/tox.h:370:6: note: expected ‘void (*)(struct Tox *, int32_t, uint8_t *, void *)’ but argument is of type ‘void (*)(struct Tox *, int, const uint8_t *, void *)’
- void tox_callback_group_invite(Tox *tox, void (*function)(Tox *tox, int32_t, uint8_t *, void *), void *userdata);
- ^
- tox.c:326:5: warning: passing argument 2 of ‘tox_callback_group_message’ from incompatible pointer type
- tox_callback_group_message(tox, callback_group_message, NULL);
- ^
- In file included from main.h:12:0,
- from tox.c:1:
- /usr/include/tox/tox.h:376:6: note: expected ‘void (*)(struct Tox *, int, int, uint8_t *, uint16_t, void *)’ but argument is of type ‘void (*)(struct Tox *, int, int, const uint8_t *, uint16_t, void *)’
- void tox_callback_group_message(Tox *tox, void (*function)(Tox *tox, int, int, uint8_t *, uint16_t, void *),
- ^
- tox.c:327:5: warning: passing argument 2 of ‘tox_callback_group_action’ from incompatible pointer type
- tox_callback_group_action(tox, callback_group_action, NULL);
- ^
- In file included from main.h:12:0,
- from tox.c:1:
- /usr/include/tox/tox.h:383:6: note: expected ‘void (*)(struct Tox *, int, int, uint8_t *, uint16_t, void *)’ but argument is of type ‘void (*)(struct Tox *, int, int, const uint8_t *, uint16_t, void *)’
- void tox_callback_group_action(Tox *tox, void (*function)(Tox *tox, int, int, uint8_t *, uint16_t, void *),
- ^
- tox.c:330:5: warning: passing argument 2 of ‘tox_callback_file_send_request’ from incompatible pointer type
- tox_callback_file_send_request(tox, callback_file_send_request, NULL);
- ^
- In file included from main.h:12:0,
- from tox.c:1:
- /usr/include/tox/tox.h:526:6: note: expected ‘void (*)(struct Tox *, int32_t, uint8_t, uint64_t, uint8_t *, uint16_t, void *)’ but argument is of type ‘void (*)(struct Tox *, int32_t, uint8_t, uint64_t, const uint8_t *, uint16_t, void *)’
- void tox_callback_file_send_request(Tox *tox, void (*function)(Tox *m, int32_t, uint8_t, uint64_t, uint8_t *, uint16_t,
- ^
- tox.c:331:5: warning: passing argument 2 of ‘tox_callback_file_control’ from incompatible pointer type
- tox_callback_file_control(tox, callback_file_control, NULL);
- ^
- In file included from main.h:12:0,
- from tox.c:1:
- /usr/include/tox/tox.h:537:6: note: expected ‘void (*)(struct Tox *, int32_t, uint8_t, uint8_t, uint8_t, uint8_t *, uint16_t, void *)’ but argument is of type ‘void (*)(struct Tox *, int32_t, uint8_t, uint8_t, uint8_t, const uint8_t *, uint16_t, void *)’
- void tox_callback_file_control(Tox *tox, void (*function)(Tox *m, int32_t, uint8_t, uint8_t, uint8_t, uint8_t *,
- ^
- tox.c:332:5: warning: passing argument 2 of ‘tox_callback_file_data’ from incompatible pointer type
- tox_callback_file_data(tox, callback_file_data, NULL);
- ^
- In file included from main.h:12:0,
- from tox.c:1:
- /usr/include/tox/tox.h:545:6: note: expected ‘void (*)(struct Tox *, int32_t, uint8_t, uint8_t *, uint16_t, void *)’ but argument is of type ‘void (*)(struct Tox *, int32_t, uint8_t, const uint8_t *, uint16_t, void *)’
- void tox_callback_file_data(Tox *tox, void (*function)(Tox *m, int32_t, uint8_t, uint8_t *, uint16_t length, void *),
- ^
- Makefile:23: recipe for target 'tox.o' failed
- make: *** [tox.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement