Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 KB | None | 0 0
  1. ljchinnock@ljchinnock-IdeaPad-Z585:~/Documents/distrib-unix$ gcc comp1_0.c -ansi -pedantic -Wall -Iheaders -o comp1_0 > output.log
  2. comp1_0.c:82:19: error: C++ style comments are not allowed in ISO C90
  3. int scope = 0; //Global scope
  4. ^
  5. comp1_0.c:82:19: error: (this will be reported only once per input file)
  6. comp1_0.c: In function ‘ParseSimpleStatement’:
  7. comp1_0.c:389:14: warning: implicit declaration of function ‘LookupSymbol’ [-Wimplicit-function-declaration]
  8. target = LookupSymbol();
  9. ^
  10. comp1_0.c:389:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  11. target = LookupSymbol();
  12. ^
  13. comp1_0.c: In function ‘ParseRestOfStatement’:
  14. comp1_0.c:451:2: warning: "/*" within comment [-Wcomment]
  15. /* Nothing needs to be parsed for epsilon */
  16. ^
  17. comp1_0.c: In function ‘ParseExpression’:
  18. comp1_0.c:692:5: warning: implicit declaration of function ‘ParseOpPrec’ [-Wimplicit-function-declaration]
  19. ParseOpPrec(0);
  20. ^
  21. comp1_0.c:693:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  22. while (op = CurrentToken.code == ADD || op == SUBTRACT)
  23. ^
  24. comp1_0.c: In function ‘ParseCompoundTerm’:
  25. comp1_0.c:733:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  26. while (op = CurrentToken.code == MULTIPLY || op == DIVIDE)
  27. ^
  28. comp1_0.c: In function ‘ParseSubTerm’:
  29. comp1_0.c:810:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  30. var = LookupSymbol();
  31. ^
  32. comp1_0.c: At top level:
  33. comp1_0.c:1128:17: error: conflicting types for ‘LookupSymbol’
  34. PRIVATE SYMBOL *LookupSymbol(void)
  35. ^
  36. comp1_0.c:389:14: note: previous implicit declaration of ‘LookupSymbol’ was here
  37. target = LookupSymbol();
  38. ^
  39. comp1_0.c:1147:14: warning: conflicting types for ‘ParseOpPrec’
  40. PRIVATE void ParseOpPrec(int minPrec)
  41. ^
  42. comp1_0.c:1147:14: error: static declaration of ‘ParseOpPrec’ follows non-static declaration
  43. comp1_0.c:692:5: note: previous implicit declaration of ‘ParseOpPrec’ was here
  44. ParseOpPrec(0);
  45. ^
  46. comp1_0.c: In function ‘ParseOpPrec’:
  47. comp1_0.c:1166:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  48. int operatorInstruction[4];
  49. ^
  50. comp1_0.c: At top level:
  51. comp1_0.c:1128:17: warning: ‘LookupSymbol’ defined but not used [-Wunused-function]
  52. PRIVATE SYMBOL *LookupSymbol(void)
  53. ^
  54. comp1_0.c:1147:14: warning: ‘ParseOpPrec’ defined but not used [-Wunused-function]
  55. PRIVATE void ParseOpPrec(int minPrec)
  56. ^
  57. ljchinnock@ljchinnock-IdeaPad-Z585:~/Documents/distrib-unix$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement