Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. gcc -o ajtcl-interface-manager -Wall memory.c main.c
  2. memory.c: In function ‘AJ_InterfaceDescriptionAdd’:
  3. memory.c:58:23: warning: passing argument 1 of ‘AJ_Realloc’ discards ‘const’ qualifier from pointer target type
  4. iter = AJ_Realloc(*interfaceDescription, sizeof(char*) * (size + 2));
  5. ^
  6. memory.c:16:7: note: expected ‘void *’ but argument is of type ‘AJ_InterfaceDescription’
  7. void* AJ_Realloc(void* ptr, size_t size)
  8. ^
  9. main.c: In function ‘main’:
  10. main.c:13:5: warning: implicit declaration of function ‘AJ_InterfaceDescriptionCreate’ [-Wimplicit-function-declaration]
  11. data = AJ_InterfaceDescriptionCreate("org.alljoyn.Bus.sample");
  12. ^
  13. main.c:13:10: warning: assignment makes pointer from integer without a cast
  14. data = AJ_InterfaceDescriptionCreate("org.alljoyn.Bus.sample");
  15. ^
  16. main.c:16:5: warning: implicit declaration of function ‘AJ_InterfaceDescriptionAdd’ [-Wimplicit-function-declaration]
  17. AJ_InterfaceDescriptionAdd(&data, "?Dummy foo<i");
  18. ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement