Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1.  
  2. :!gcc -o -m64 -DIS_TEST -std=c99 memory.c && time ./a.out
  3. memory.c: In function ‘memory_initialize’:
  4. memory.c:107: warning: implicit declaration of function ‘wdata’
  5. memory.c:107: warning: implicit declaration of function ‘rsize’
  6. memory.c:107: warning: passing argument 1 of ‘memset’ makes pointer from integer without a cast
  7. /usr/include/string.h:64: note: expected ‘void *’ but argument is of type ‘int’
  8. memory.c:108: warning: implicit declaration of function ‘winfo’
  9. memory.c:108: error: invalid type argument of ‘unary *’ (have ‘int’)
  10. memory.c: In function ‘snew’:
  11. memory.c:115: error: ‘op’ undeclared (first use in this function)
  12. memory.c:115: error: (Each undeclared identifier is reported only once
  13. memory.c:115: error: for each function it appears in.)
  14. memory.c:116: error: expected ‘;’ before ‘fprintf’
  15. memory.c: In function ‘copy’:
  16. memory.c:134: warning: implicit declaration of function ‘wtype’
  17. memory.c:134: error: invalid type argument of ‘unary *’ (have ‘int’)
  18. memory.c:135: warning: passing argument 1 of ‘memcpy’ makes pointer from integer without a cast
  19. /usr/include/string.h:43: note: expected ‘void * restrict’ but argument is of type ‘int’
  20. memory.c: At top level:
  21. memory.c:139: error: conflicting types for ‘delete’
  22. memory.h:105: note: previous declaration of ‘delete’ was here
  23. memory.c: In function ‘delete’:
  24. memory.c:143: error: request for member ‘info’ in something not a structure or union
  25. memory.c: At top level:
  26. memory.c:199: error: conflicting types for ‘rinfo’
  27. memory.h:110: note: previous declaration of ‘rinfo’ was here
  28. memory.c:204: error: conflicting types for ‘rtype’
  29. memory.h:111: note: previous declaration of ‘rtype’ was here
  30. memory.c:222: error: conflicting types for ‘wtype’
  31. memory.c:134: note: previous implicit declaration of ‘wtype’ was here
  32. memory.c: In function ‘wtype’:
  33. memory.c:225: error: request for member ‘type’ in something not a structure or union
  34. memory.c: At top level:
  35. memory.c:228: error: conflicting types for ‘winfo’
  36. memory.c:108: note: previous implicit declaration of ‘winfo’ was here
  37. memory.c: In function ‘winfo’:
  38. memory.c:231: error: request for member ‘info’ in something not a structure or union
  39. memory.c: At top level:
  40. memory.c:234: error: conflicting types for ‘wdata’
  41. memory.c:107: note: previous implicit declaration of ‘wdata’ was here
  42. memory.c: In function ‘wdata’:
  43. memory.c:237: error: request for member ‘data’ in something not a structure or union
  44. memory.c: At top level:
  45. memory.c:240: error: conflicting types for ‘rsize’
  46. memory.c:107: note: previous implicit declaration of ‘rsize’ was here
  47.  
  48. shell returned 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement