Skip to content

Instantly share code, notes, and snippets.

@DennisPing
Created February 18, 2022 02:45
Show Gist options
  • Save DennisPing/f6ad123b89c993d3855e7bf3f58e33b2 to your computer and use it in GitHub Desktop.
Save DennisPing/f6ad123b89c993d3855e7bf3f58e33b2 to your computer and use it in GitHub Desktop.
Lab 2: Unable to compile (make) the baseline code
~/Doc/CS56/lab2-DennisPing main ❯ make
+ cc cmdparse.c
cmdparse.c: In function ‘cmd_line_parse’:
cmdparse.c:387:40: error: implicit conversion from ‘tokentype_t’ to ‘controlop_t’ [-Werror=enum-conversion]
387 | cmd->controlop = token.type;
| ^
cmdparse.c:392:40: error: implicit conversion from ‘tokentype_t’ to ‘controlop_t’ [-Werror=enum-conversion]
392 | cmd->controlop = token.type;
| ^
cc1: all warnings being treated as errors
make: *** [Makefile:17: cmdparse.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment