Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ljchinnock@ljchinnock-IdeaPad-Z585:~/Documents/distrib-unix$ gcc comp1_0.c -ansi -pedantic -Wall -Iheaders -o comp1_0 > output.log
- comp1_0.c:82:19: error: C++ style comments are not allowed in ISO C90
- int scope = 0; //Global scope
- ^
- comp1_0.c:82:19: error: (this will be reported only once per input file)
- comp1_0.c: In function ‘ParseSimpleStatement’:
- comp1_0.c:389:14: warning: implicit declaration of function ‘LookupSymbol’ [-Wimplicit-function-declaration]
- target = LookupSymbol(CurrentToken.code);
- ^
- comp1_0.c:389:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
- target = LookupSymbol(CurrentToken.code);
- ^
- comp1_0.c: In function ‘ParseRestOfStatement’:
- comp1_0.c:451:2: warning: "/*" within comment [-Wcomment]
- /* Nothing needs to be parsed for epsilon */
- ^
- comp1_0.c: In function ‘ParseExpression’:
- comp1_0.c:692:5: warning: implicit declaration of function ‘ParseOpPrec’ [-Wimplicit-function-declaration]
- ParseOpPrec(0);
- ^
- comp1_0.c:693:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
- while (op = CurrentToken.code == ADD || op == SUBTRACT)
- ^
- comp1_0.c: In function ‘ParseCompoundTerm’:
- comp1_0.c:733:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
- while (op = CurrentToken.code == MULTIPLY || op == DIVIDE)
- ^
- comp1_0.c: In function ‘ParseSubTerm’:
- comp1_0.c:810:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
- var = LookupSymbol();
- ^
- comp1_0.c: At top level:
- comp1_0.c:1128:17: error: conflicting types for ‘LookupSymbol’
- PRIVATE SYMBOL *LookupSymbol(void)
- ^
- comp1_0.c:389:14: note: previous implicit declaration of ‘LookupSymbol’ was here
- target = LookupSymbol(CurrentToken.code);
- ^
- comp1_0.c:1147:14: warning: conflicting types for ‘ParseOpPrec’
- PRIVATE void ParseOpPrec(int minPrec)
- ^
- comp1_0.c:1147:14: error: static declaration of ‘ParseOpPrec’ follows non-static declaration
- comp1_0.c:692:5: note: previous implicit declaration of ‘ParseOpPrec’ was here
- ParseOpPrec(0);
- ^
- comp1_0.c: In function ‘ParseOpPrec’:
- comp1_0.c:1166:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
- int operatorInstruction[4];
- ^
- comp1_0.c: At top level:
- comp1_0.c:1128:17: warning: ‘LookupSymbol’ defined but not used [-Wunused-function]
- PRIVATE SYMBOL *LookupSymbol(void)
- ^
- comp1_0.c:1147:14: warning: ‘ParseOpPrec’ defined but not used [-Wunused-function]
- PRIVATE void ParseOpPrec(int minPrec)
- ^
- ljchinnock@ljchinnock-IdeaPad-Z585:~/Documents/distrib-unix$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement