Guest User

Untitled

a guest
Nov 4th, 2014
436
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. c4.c:45:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
  2. next()
  3. ^~~~
  4. c4.c:49:21: error: non-void function 'next' should return a value [-Wreturn-type]
  5. if (!(tk = *p)) return;
  6. ^
  7. c4.c:54:23: warning: field precision should have type 'int', but argument has type 'long' [-Wformat]
  8. printf("%d: %.*s", line, p - lp, lp);
  9. ~~^~ ~~~~~~
  10. c4.c:59:70: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
  11. "OPEN,READ,CLOS,PRTF,MALC,MSET,MCMP,EXIT," + *++le * 5);
  12. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
  13. c4.c:59:70: note: use array indexing to silence this warning
  14. "OPEN,READ,CLOS,PRTF,MALC,MSET,MCMP,EXIT," + *++le * 5);
  15. ^
  16. c4.c:75:39: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
  17. if (tk == id[Hash] && !memcmp((char *)id[Name], pp, p - pp)) { tk = id[Tk]; return; }
  18. ^
  19. c4.c:75:85: error: non-void function 'next' should return a value [-Wreturn-type]
  20. if (tk == id[Hash] && !memcmp((char *)id[Name], pp, p - pp)) { tk = id[Tk]; return; }
  21. ^
  22. c4.c:81:7: error: non-void function 'next' should return a value [-Wreturn-type]
  23. return;
  24. ^
  25. c4.c:87:7: error: non-void function 'next' should return a value [-Wreturn-type]
  26. return;
  27. ^
  28. c4.c:95:9: error: non-void function 'next' should return a value [-Wreturn-type]
  29. return;
  30. ^
  31. c4.c:108:7: error: non-void function 'next' should return a value [-Wreturn-type]
  32. return;
  33. ^
  34. c4.c:110:78: error: non-void function 'next' should return a value [-Wreturn-type]
  35. else if (tk == '=') { if (*p == '=') { ++p; tk = Eq; } else tk = Assign; return; }
  36. ^
  37. c4.c:111:76: error: non-void function 'next' should return a value [-Wreturn-type]
  38. else if (tk == '+') { if (*p == '+') { ++p; tk = Inc; } else tk = Add; return; }
  39. ^
  40. c4.c:112:76: error: non-void function 'next' should return a value [-Wreturn-type]
  41. else if (tk == '-') { if (*p == '-') { ++p; tk = Dec; } else tk = Sub; return; }
  42. ^
  43. c4.c:113:60: error: non-void function 'next' should return a value [-Wreturn-type]
  44. else if (tk == '!') { if (*p == '=') { ++p; tk = Ne; } return; }
  45. ^
  46. c4.c:114:113: error: non-void function 'next' should return a value [-Wreturn-type]
  47. else if (tk == '<') { if (*p == '=') { ++p; tk = Le; } else if (*p == '<') { ++p; tk = Shl; } else tk = Lt; return; }
  48. ^
  49. c4.c:115:113: error: non-void function 'next' should return a value [-Wreturn-type]
  50. else if (tk == '>') { if (*p == '=') { ++p; tk = Ge; } else if (*p == '>') { ++p; tk = Shr; } else tk = Gt; return; }
  51. ^
  52. c4.c:116:75: error: non-void function 'next' should return a value [-Wreturn-type]
  53. else if (tk == '|') { if (*p == '|') { ++p; tk = Lor; } else tk = Or; return; }
  54. ^
  55. c4.c:117:76: error: non-void function 'next' should return a value [-Wreturn-type]
  56. else if (tk == '&') { if (*p == '&') { ++p; tk = Lan; } else tk = And; return; }
  57. ^
  58. c4.c:118:37: error: non-void function 'next' should return a value [-Wreturn-type]
  59. else if (tk == '^') { tk = Xor; return; }
  60. ^
  61. c4.c:119:37: error: non-void function 'next' should return a value [-Wreturn-type]
  62. else if (tk == '%') { tk = Mod; return; }
  63. ^
  64. c4.c:120:37: error: non-void function 'next' should return a value [-Wreturn-type]
  65. else if (tk == '*') { tk = Mul; return; }
  66. ^
  67. c4.c:121:38: error: non-void function 'next' should return a value [-Wreturn-type]
  68. else if (tk == '[') { tk = Brak; return; }
  69. ^
  70. c4.c:122:38: error: non-void function 'next' should return a value [-Wreturn-type]
  71. else if (tk == '?') { tk = Cond; return; }
RAW Paste Data