Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.22 KB | None | 0 0
  1. In file included from tox.c:178:0:
  2. tox_callbacks.h: In function ‘callback_group_invite’:
  3. tox_callbacks.h:150:15: warning: passing argument 3 of ‘tox_join_groupchat’ discards ‘const’ qualifier from pointer target type
  4. int gid = tox_join_groupchat(tox, fid, group_public_key);
  5. ^
  6. In file included from main.h:12:0,
  7. from tox.c:1:
  8. /usr/include/tox/tox.h:433:5: note: expected ‘uint8_t *’ but argument is of type ‘const uint8_t *’
  9. int tox_join_groupchat(Tox *tox, int32_t friendnumber, uint8_t *friend_group_public_key);
  10. ^
  11. In file included from tox.c:298:0:
  12. tox_av.h: In function ‘av_start’:
  13. tox_av.h:11:17: error: ‘ToxAvCodecSettings’ has no member named ‘max_video_width’
  14. settings.max_video_width = max_video_width;
  15. ^
  16. tox_av.h:12:17: error: ‘ToxAvCodecSettings’ has no member named ‘max_video_height’
  17. settings.max_video_height = max_video_height;
  18. ^
  19. In file included from tox.c:298:0:
  20. tox_av.h: In function ‘set_av_callbacks’:
  21. tox_av.h:658:5: warning: passing argument 1 of ‘toxav_register_callstate_callback’ from incompatible pointer type
  22. toxav_register_callstate_callback(av, callback_av_invite, av_OnInvite, NULL);
  23. ^
  24. In file included from main.h:13:0,
  25. from tox.c:1:
  26. /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAVCallback’ but argument is of type ‘struct ToxAv *’
  27. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  28. ^
  29. In file included from tox.c:298:0:
  30. tox_av.h:658:5: error: incompatible type for argument 2 of ‘toxav_register_callstate_callback’
  31. toxav_register_callstate_callback(av, callback_av_invite, av_OnInvite, NULL);
  32. ^
  33. In file included from main.h:13:0,
  34. from tox.c:1:
  35. /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAvCallbackID’ but argument is of type ‘void (*)(void *, int32_t, void *)’
  36. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  37. ^
  38. In file included from tox.c:298:0:
  39. tox_av.h:658:5: error: too many arguments to function ‘toxav_register_callstate_callback’
  40. toxav_register_callstate_callback(av, callback_av_invite, av_OnInvite, NULL);
  41. ^
  42. In file included from main.h:13:0,
  43. from tox.c:1:
  44. /usr/include/tox/toxav.h:156:6: note: declared here
  45. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  46. ^
  47. In file included from tox.c:298:0:
  48. tox_av.h:659:5: warning: passing argument 1 of ‘toxav_register_callstate_callback’ from incompatible pointer type
  49. toxav_register_callstate_callback(av, callback_av_start, av_OnStart, NULL);
  50. ^
  51. In file included from main.h:13:0,
  52. from tox.c:1:
  53. /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAVCallback’ but argument is of type ‘struct ToxAv *’
  54. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  55. ^
  56. In file included from tox.c:298:0:
  57. tox_av.h:659:5: error: incompatible type for argument 2 of ‘toxav_register_callstate_callback’
  58. toxav_register_callstate_callback(av, callback_av_start, av_OnStart, NULL);
  59. ^
  60. In file included from main.h:13:0,
  61. from tox.c:1:
  62. /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAvCallbackID’ but argument is of type ‘void (*)(void *, int32_t, void *)’
  63. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  64. ^
  65. In file included from tox.c:298:0:
  66. tox_av.h:659:5: warning: passing argument 3 of ‘toxav_register_callstate_callback’ makes pointer from integer without a cast
  67. toxav_register_callstate_callback(av, callback_av_start, av_OnStart, NULL);
  68. ^
  69. In file included from main.h:13:0,
  70. from tox.c:1:
  71. /usr/include/tox/toxav.h:156:6: note: expected ‘void *’ but argument is of type ‘int’
  72. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  73. ^
  74. In file included from tox.c:298:0:
  75. tox_av.h:659:5: error: too many arguments to function ‘toxav_register_callstate_callback’
  76. toxav_register_callstate_callback(av, callback_av_start, av_OnStart, NULL);
  77. ^
  78. In file included from main.h:13:0,
  79. from tox.c:1:
  80. /usr/include/tox/toxav.h:156:6: note: declared here
  81. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  82. ^
  83. In file included from tox.c:298:0:
  84. tox_av.h:660:5: warning: passing argument 1 of ‘toxav_register_callstate_callback’ from incompatible pointer type
  85. toxav_register_callstate_callback(av, callback_av_cancel, av_OnCancel, NULL);
  86. ^
  87. In file included from main.h:13:0,
  88. from tox.c:1:
  89. /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAVCallback’ but argument is of type ‘struct ToxAv *’
  90. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  91. ^
  92. In file included from tox.c:298:0:
  93. tox_av.h:660:5: error: incompatible type for argument 2 of ‘toxav_register_callstate_callback’
  94. toxav_register_callstate_callback(av, callback_av_cancel, av_OnCancel, NULL);
  95. ^
  96. In file included from main.h:13:0,
  97. from tox.c:1:
  98. /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAvCallbackID’ but argument is of type ‘void (*)(void *, int32_t, void *)’
  99. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  100. ^
  101. In file included from tox.c:298:0:
  102. tox_av.h:660:5: warning: passing argument 3 of ‘toxav_register_callstate_callback’ makes pointer from integer without a cast
  103. toxav_register_callstate_callback(av, callback_av_cancel, av_OnCancel, NULL);
  104. ^
  105. In file included from main.h:13:0,
  106. from tox.c:1:
  107. /usr/include/tox/toxav.h:156:6: note: expected ‘void *’ but argument is of type ‘int’
  108. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  109. ^
  110. In file included from tox.c:298:0:
  111. tox_av.h:660:5: error: too many arguments to function ‘toxav_register_callstate_callback’
  112. toxav_register_callstate_callback(av, callback_av_cancel, av_OnCancel, NULL);
  113. ^
  114. In file included from main.h:13:0,
  115. from tox.c:1:
  116. /usr/include/tox/toxav.h:156:6: note: declared here
  117. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  118. ^
  119. In file included from tox.c:298:0:
  120. tox_av.h:661:5: warning: passing argument 1 of ‘toxav_register_callstate_callback’ from incompatible pointer type
  121. toxav_register_callstate_callback(av, callback_av_reject, av_OnReject, NULL);
  122. ^
  123. In file included from main.h:13:0,
  124. from tox.c:1:
  125. /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAVCallback’ but argument is of type ‘struct ToxAv *’
  126. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  127. ^
  128. In file included from tox.c:298:0:
  129. tox_av.h:661:5: error: incompatible type for argument 2 of ‘toxav_register_callstate_callback’
  130. toxav_register_callstate_callback(av, callback_av_reject, av_OnReject, NULL);
  131. ^
  132. In file included from main.h:13:0,
  133. from tox.c:1:
  134. /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAvCallbackID’ but argument is of type ‘void (*)(void *, int32_t, void *)’
  135. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  136. ^
  137. In file included from tox.c:298:0:
  138. tox_av.h:661:5: warning: passing argument 3 of ‘toxav_register_callstate_callback’ makes pointer from integer without a cast
  139. toxav_register_callstate_callback(av, callback_av_reject, av_OnReject, NULL);
  140. ^
  141. In file included from main.h:13:0,
  142. from tox.c:1:
  143. /usr/include/tox/toxav.h:156:6: note: expected ‘void *’ but argument is of type ‘int’
  144. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  145. ^
  146. In file included from tox.c:298:0:
  147. tox_av.h:661:5: error: too many arguments to function ‘toxav_register_callstate_callback’
  148. toxav_register_callstate_callback(av, callback_av_reject, av_OnReject, NULL);
  149. ^
  150. In file included from main.h:13:0,
  151. from tox.c:1:
  152. /usr/include/tox/toxav.h:156:6: note: declared here
  153. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  154. ^
  155. In file included from tox.c:298:0:
  156. tox_av.h:662:5: warning: passing argument 1 of ‘toxav_register_callstate_callback’ from incompatible pointer type
  157. toxav_register_callstate_callback(av, callback_av_end, av_OnEnd, NULL);
  158. ^
  159. In file included from main.h:13:0,
  160. from tox.c:1:
  161. /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAVCallback’ but argument is of type ‘struct ToxAv *’
  162. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  163. ^
  164. In file included from tox.c:298:0:
  165. tox_av.h:662:5: error: incompatible type for argument 2 of ‘toxav_register_callstate_callback’
  166. toxav_register_callstate_callback(av, callback_av_end, av_OnEnd, NULL);
  167. ^
  168. In file included from main.h:13:0,
  169. from tox.c:1:
  170. /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAvCallbackID’ but argument is of type ‘void (*)(void *, int32_t, void *)’
  171. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  172. ^
  173. In file included from tox.c:298:0:
  174. tox_av.h:662:5: warning: passing argument 3 of ‘toxav_register_callstate_callback’ makes pointer from integer without a cast
  175. toxav_register_callstate_callback(av, callback_av_end, av_OnEnd, NULL);
  176. ^
  177. In file included from main.h:13:0,
  178. from tox.c:1:
  179. /usr/include/tox/toxav.h:156:6: note: expected ‘void *’ but argument is of type ‘int’
  180. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  181. ^
  182. In file included from tox.c:298:0:
  183. tox_av.h:662:5: error: too many arguments to function ‘toxav_register_callstate_callback’
  184. toxav_register_callstate_callback(av, callback_av_end, av_OnEnd, NULL);
  185. ^
  186. In file included from main.h:13:0,
  187. from tox.c:1:
  188. /usr/include/tox/toxav.h:156:6: note: declared here
  189. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  190. ^
  191. In file included from tox.c:298:0:
  192. tox_av.h:664:5: warning: passing argument 1 of ‘toxav_register_callstate_callback’ from incompatible pointer type
  193. toxav_register_callstate_callback(av, callback_av_ringing, av_OnRinging, NULL);
  194. ^
  195. In file included from main.h:13:0,
  196. from tox.c:1:
  197. /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAVCallback’ but argument is of type ‘struct ToxAv *’
  198. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  199. ^
  200. In file included from tox.c:298:0:
  201. tox_av.h:664:5: error: incompatible type for argument 2 of ‘toxav_register_callstate_callback’
  202. toxav_register_callstate_callback(av, callback_av_ringing, av_OnRinging, NULL);
  203. ^
  204. In file included from main.h:13:0,
  205. from tox.c:1:
  206. /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAvCallbackID’ but argument is of type ‘void (*)(void *, int32_t, void *)’
  207. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  208. ^
  209. In file included from tox.c:298:0:
  210. tox_av.h:664:5: warning: passing argument 3 of ‘toxav_register_callstate_callback’ makes pointer from integer without a cast
  211. toxav_register_callstate_callback(av, callback_av_ringing, av_OnRinging, NULL);
  212. ^
  213. In file included from main.h:13:0,
  214. from tox.c:1:
  215. /usr/include/tox/toxav.h:156:6: note: expected ‘void *’ but argument is of type ‘int’
  216. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  217. ^
  218. In file included from tox.c:298:0:
  219. tox_av.h:664:5: error: too many arguments to function ‘toxav_register_callstate_callback’
  220. toxav_register_callstate_callback(av, callback_av_ringing, av_OnRinging, NULL);
  221. ^
  222. In file included from main.h:13:0,
  223. from tox.c:1:
  224. /usr/include/tox/toxav.h:156:6: note: declared here
  225. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  226. ^
  227. In file included from tox.c:298:0:
  228. tox_av.h:665:5: warning: passing argument 1 of ‘toxav_register_callstate_callback’ from incompatible pointer type
  229. toxav_register_callstate_callback(av, callback_av_starting, av_OnStarting, NULL);
  230. ^
  231. In file included from main.h:13:0,
  232. from tox.c:1:
  233. /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAVCallback’ but argument is of type ‘struct ToxAv *’
  234. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  235. ^
  236. In file included from tox.c:298:0:
  237. tox_av.h:665:5: error: incompatible type for argument 2 of ‘toxav_register_callstate_callback’
  238. toxav_register_callstate_callback(av, callback_av_starting, av_OnStarting, NULL);
  239. ^
  240. In file included from main.h:13:0,
  241. from tox.c:1:
  242. /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAvCallbackID’ but argument is of type ‘void (*)(void *, int32_t, void *)’
  243. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  244. ^
  245. In file included from tox.c:298:0:
  246. tox_av.h:665:5: warning: passing argument 3 of ‘toxav_register_callstate_callback’ makes pointer from integer without a cast
  247. toxav_register_callstate_callback(av, callback_av_starting, av_OnStarting, NULL);
  248. ^
  249. In file included from main.h:13:0,
  250. from tox.c:1:
  251. /usr/include/tox/toxav.h:156:6: note: expected ‘void *’ but argument is of type ‘int’
  252. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  253. ^
  254. In file included from tox.c:298:0:
  255. tox_av.h:665:5: error: too many arguments to function ‘toxav_register_callstate_callback’
  256. toxav_register_callstate_callback(av, callback_av_starting, av_OnStarting, NULL);
  257. ^
  258. In file included from main.h:13:0,
  259. from tox.c:1:
  260. /usr/include/tox/toxav.h:156:6: note: declared here
  261. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  262. ^
  263. In file included from tox.c:298:0:
  264. tox_av.h:666:5: warning: passing argument 1 of ‘toxav_register_callstate_callback’ from incompatible pointer type
  265. toxav_register_callstate_callback(av, callback_av_ending, av_OnEnding, NULL);
  266. ^
  267. In file included from main.h:13:0,
  268. from tox.c:1:
  269. /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAVCallback’ but argument is of type ‘struct ToxAv *’
  270. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  271. ^
  272. In file included from tox.c:298:0:
  273. tox_av.h:666:5: error: incompatible type for argument 2 of ‘toxav_register_callstate_callback’
  274. toxav_register_callstate_callback(av, callback_av_ending, av_OnEnding, NULL);
  275. ^
  276. In file included from main.h:13:0,
  277. from tox.c:1:
  278. /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAvCallbackID’ but argument is of type ‘void (*)(void *, int32_t, void *)’
  279. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  280. ^
  281. In file included from tox.c:298:0:
  282. tox_av.h:666:5: warning: passing argument 3 of ‘toxav_register_callstate_callback’ makes pointer from integer without a cast
  283. toxav_register_callstate_callback(av, callback_av_ending, av_OnEnding, NULL);
  284. ^
  285. In file included from main.h:13:0,
  286. from tox.c:1:
  287. /usr/include/tox/toxav.h:156:6: note: expected ‘void *’ but argument is of type ‘int’
  288. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  289. ^
  290. In file included from tox.c:298:0:
  291. tox_av.h:666:5: error: too many arguments to function ‘toxav_register_callstate_callback’
  292. toxav_register_callstate_callback(av, callback_av_ending, av_OnEnding, NULL);
  293. ^
  294. In file included from main.h:13:0,
  295. from tox.c:1:
  296. /usr/include/tox/toxav.h:156:6: note: declared here
  297. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  298. ^
  299. In file included from tox.c:298:0:
  300. tox_av.h:668:5: warning: passing argument 1 of ‘toxav_register_callstate_callback’ from incompatible pointer type
  301. toxav_register_callstate_callback(av, callback_av_requesttimeout, av_OnRequestTimeout, NULL);
  302. ^
  303. In file included from main.h:13:0,
  304. from tox.c:1:
  305. /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAVCallback’ but argument is of type ‘struct ToxAv *’
  306. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  307. ^
  308. In file included from tox.c:298:0:
  309. tox_av.h:668:5: error: incompatible type for argument 2 of ‘toxav_register_callstate_callback’
  310. toxav_register_callstate_callback(av, callback_av_requesttimeout, av_OnRequestTimeout, NULL);
  311. ^
  312. In file included from main.h:13:0,
  313. from tox.c:1:
  314. /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAvCallbackID’ but argument is of type ‘void (*)(void *, int32_t, void *)’
  315. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  316. ^
  317. In file included from tox.c:298:0:
  318. tox_av.h:668:5: warning: passing argument 3 of ‘toxav_register_callstate_callback’ makes pointer from integer without a cast
  319. toxav_register_callstate_callback(av, callback_av_requesttimeout, av_OnRequestTimeout, NULL);
  320. ^
  321. In file included from main.h:13:0,
  322. from tox.c:1:
  323. /usr/include/tox/toxav.h:156:6: note: expected ‘void *’ but argument is of type ‘int’
  324. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  325. ^
  326. In file included from tox.c:298:0:
  327. tox_av.h:668:5: error: too many arguments to function ‘toxav_register_callstate_callback’
  328. toxav_register_callstate_callback(av, callback_av_requesttimeout, av_OnRequestTimeout, NULL);
  329. ^
  330. In file included from main.h:13:0,
  331. from tox.c:1:
  332. /usr/include/tox/toxav.h:156:6: note: declared here
  333. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  334. ^
  335. In file included from tox.c:298:0:
  336. tox_av.h:669:5: warning: passing argument 1 of ‘toxav_register_callstate_callback’ from incompatible pointer type
  337. toxav_register_callstate_callback(av, callback_av_peertimeout, av_OnPeerTimeout, NULL);
  338. ^
  339. In file included from main.h:13:0,
  340. from tox.c:1:
  341. /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAVCallback’ but argument is of type ‘struct ToxAv *’
  342. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  343. ^
  344. In file included from tox.c:298:0:
  345. tox_av.h:669:5: error: incompatible type for argument 2 of ‘toxav_register_callstate_callback’
  346. toxav_register_callstate_callback(av, callback_av_peertimeout, av_OnPeerTimeout, NULL);
  347. ^
  348. In file included from main.h:13:0,
  349. from tox.c:1:
  350. /usr/include/tox/toxav.h:156:6: note: expected ‘ToxAvCallbackID’ but argument is of type ‘void (*)(void *, int32_t, void *)’
  351. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  352. ^
  353. In file included from tox.c:298:0:
  354. tox_av.h:669:5: warning: passing argument 3 of ‘toxav_register_callstate_callback’ makes pointer from integer without a cast
  355. toxav_register_callstate_callback(av, callback_av_peertimeout, av_OnPeerTimeout, NULL);
  356. ^
  357. In file included from main.h:13:0,
  358. from tox.c:1:
  359. /usr/include/tox/toxav.h:156:6: note: expected ‘void *’ but argument is of type ‘int’
  360. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  361. ^
  362. In file included from tox.c:298:0:
  363. tox_av.h:669:5: error: too many arguments to function ‘toxav_register_callstate_callback’
  364. toxav_register_callstate_callback(av, callback_av_peertimeout, av_OnPeerTimeout, NULL);
  365. ^
  366. In file included from main.h:13:0,
  367. from tox.c:1:
  368. /usr/include/tox/toxav.h:156:6: note: declared here
  369. void toxav_register_callstate_callback (ToxAVCallback callback, ToxAvCallbackID id, void *userdata);
  370. ^
  371. In file included from tox.c:298:0:
  372. tox_av.h:672:5: warning: implicit declaration of function ‘toxav_register_audio_recv_callback’ [-Wimplicit-function-declaration]
  373. toxav_register_audio_recv_callback(av, callback_av_audio);
  374. ^
  375. tox_av.h:673:5: warning: implicit declaration of function ‘toxav_register_video_recv_callback’ [-Wimplicit-function-declaration]
  376. toxav_register_video_recv_callback(av, callback_av_video);
  377. ^
  378. tox.c: In function ‘set_callbacks’:
  379. tox.c:316:5: warning: passing argument 2 of ‘tox_callback_friend_message’ from incompatible pointer type
  380. tox_callback_friend_message(tox, callback_friend_message, NULL);
  381. ^
  382. In file included from main.h:12:0,
  383. from tox.c:1:
  384. /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 *)’
  385. void tox_callback_friend_message(Tox *tox, void (*function)(Tox *tox, int32_t, uint8_t *, uint16_t, void *),
  386. ^
  387. tox.c:317:5: warning: passing argument 2 of ‘tox_callback_friend_action’ from incompatible pointer type
  388. tox_callback_friend_action(tox, callback_friend_action, NULL);
  389. ^
  390. In file included from main.h:12:0,
  391. from tox.c:1:
  392. /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 *)’
  393. void tox_callback_friend_action(Tox *tox, void (*function)(Tox *tox, int32_t, uint8_t *, uint16_t, void *),
  394. ^
  395. tox.c:318:5: warning: passing argument 2 of ‘tox_callback_name_change’ from incompatible pointer type
  396. tox_callback_name_change(tox, callback_name_change, NULL);
  397. ^
  398. In file included from main.h:12:0,
  399. from tox.c:1:
  400. /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 *)’
  401. void tox_callback_name_change(Tox *tox, void (*function)(Tox *tox, int32_t, uint8_t *, uint16_t, void *),
  402. ^
  403. tox.c:319:5: warning: passing argument 2 of ‘tox_callback_status_message’ from incompatible pointer type
  404. tox_callback_status_message(tox, callback_status_message, NULL);
  405. ^
  406. In file included from main.h:12:0,
  407. from tox.c:1:
  408. /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 *)’
  409. void tox_callback_status_message(Tox *tox, void (*function)(Tox *tox, int32_t, uint8_t *, uint16_t, void *),
  410. ^
  411. tox.c:325:5: warning: passing argument 2 of ‘tox_callback_group_invite’ from incompatible pointer type
  412. tox_callback_group_invite(tox, callback_group_invite, NULL);
  413. ^
  414. In file included from main.h:12:0,
  415. from tox.c:1:
  416. /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 *)’
  417. void tox_callback_group_invite(Tox *tox, void (*function)(Tox *tox, int32_t, uint8_t *, void *), void *userdata);
  418. ^
  419. tox.c:326:5: warning: passing argument 2 of ‘tox_callback_group_message’ from incompatible pointer type
  420. tox_callback_group_message(tox, callback_group_message, NULL);
  421. ^
  422. In file included from main.h:12:0,
  423. from tox.c:1:
  424. /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 *)’
  425. void tox_callback_group_message(Tox *tox, void (*function)(Tox *tox, int, int, uint8_t *, uint16_t, void *),
  426. ^
  427. tox.c:327:5: warning: passing argument 2 of ‘tox_callback_group_action’ from incompatible pointer type
  428. tox_callback_group_action(tox, callback_group_action, NULL);
  429. ^
  430. In file included from main.h:12:0,
  431. from tox.c:1:
  432. /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 *)’
  433. void tox_callback_group_action(Tox *tox, void (*function)(Tox *tox, int, int, uint8_t *, uint16_t, void *),
  434. ^
  435. tox.c:330:5: warning: passing argument 2 of ‘tox_callback_file_send_request’ from incompatible pointer type
  436. tox_callback_file_send_request(tox, callback_file_send_request, NULL);
  437. ^
  438. In file included from main.h:12:0,
  439. from tox.c:1:
  440. /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 *)’
  441. void tox_callback_file_send_request(Tox *tox, void (*function)(Tox *m, int32_t, uint8_t, uint64_t, uint8_t *, uint16_t,
  442. ^
  443. tox.c:331:5: warning: passing argument 2 of ‘tox_callback_file_control’ from incompatible pointer type
  444. tox_callback_file_control(tox, callback_file_control, NULL);
  445. ^
  446. In file included from main.h:12:0,
  447. from tox.c:1:
  448. /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 *)’
  449. void tox_callback_file_control(Tox *tox, void (*function)(Tox *m, int32_t, uint8_t, uint8_t, uint8_t, uint8_t *,
  450. ^
  451. tox.c:332:5: warning: passing argument 2 of ‘tox_callback_file_data’ from incompatible pointer type
  452. tox_callback_file_data(tox, callback_file_data, NULL);
  453. ^
  454. In file included from main.h:12:0,
  455. from tox.c:1:
  456. /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 *)’
  457. void tox_callback_file_data(Tox *tox, void (*function)(Tox *m, int32_t, uint8_t, uint8_t *, uint16_t length, void *),
  458. ^
  459. Makefile:23: recipe for target 'tox.o' failed
  460. make: *** [tox.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement