main.c:10:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 主要原因是在源文件中没有声明函数 未经声明的函数原型一律默认为返回int值(4个byte) 定义赋值的指针变量(8个byte) 所以发生警告
避免在_generic宏中出现"warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]“void eval() { int op, *tmp; while (1) { if (op == IMM) {ax = *pc++;} // load immediate value to ax else if (op == LC) {ax = *(char *)a...
避免在_generic宏中出现"warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]“void eval() { int op, *tmp; while (1) { if (op == IMM) {ax = *pc++;} // load immediate value to ax else if (op == LC) {ax = *(char *)a...