Skip to content

Instantly share code, notes, and snippets.

@neheb
Created January 27, 2023 20:51
Show Gist options
  • Save neheb/354e7ff0c6c5d4fcd285792ed0f95dd3 to your computer and use it in GitHub Desktop.
Save neheb/354e7ff0c6c5d4fcd285792ed0f95dd3 to your computer and use it in GitHub Desktop.
: -O2 -I/home/mangix/devstuff/openwrt/staging_dir/host/include -include endian.h -Wno-error -D__transparent_union__=__unused__ -D_STRING_ARCH_unaligned=1 -D__builtin_stpcpy=stpcpy parser.c
CC obj/parser.o
parser.y:58:21: error: incompatible integer to pointer conversion initializing 'struct statement *' with an expression of type 'YYSTYPE' (aka 'int') [-Wint-conversion]
struct statement *s = yyvsp[-1];
^ ~~~~~~~~~
parser.y:69:22: error: incompatible integer to pointer conversion initializing 'struct initval_op *' with an expression of type 'YYSTYPE' (aka 'int') [-Wint-conversion]
struct initval_op *io = yyvsp[-1];
^ ~~~~~~~~~
parser.y:87:16: error: incompatible integer to pointer conversion initializing 'const char *' with an expression of type 'YYSTYPE' (aka 'int') [-Wint-conversion]
const char *sectname = yyvsp[-1];
^ ~~~~~~~~~
parser.y:113:10: error: incompatible pointer to integer conversion assigning to 'YYSTYPE' (aka 'int') from 'struct initval_op *' [-Wint-conversion]
yyval = iop;
^ ~~~
parser.y:120:10: error: incompatible pointer to integer conversion assigning to 'YYSTYPE' (aka 'int') from 'struct initval_op *' [-Wint-conversion]
yyval = iop;
^ ~~~
parser.y:127:10: error: incompatible pointer to integer conversion assigning to 'YYSTYPE' (aka 'int') from 'struct initval_op *' [-Wint-conversion]
yyval = iop;
^ ~~~
parser.y:134:10: error: incompatible pointer to integer conversion assigning to 'YYSTYPE' (aka 'int') from 'struct initval_op *' [-Wint-conversion]
yyval = iop;
^ ~~~
parser.y:142:10: error: incompatible pointer to integer conversion assigning to 'YYSTYPE' (aka 'int') from 'struct initval_op *' [-Wint-conversion]
yyval = iop;
^ ~~~
parser.y:150:10: error: incompatible pointer to integer conversion assigning to 'YYSTYPE' (aka 'int') from 'struct initval_op *' [-Wint-conversion]
yyval = iop;
^ ~~~
parser.y:157:10: error: incompatible pointer to integer conversion assigning to 'YYSTYPE' (aka 'int') from 'struct initval_op *' [-Wint-conversion]
yyval = iop;
^ ~~~
parser.y:162:19: error: incompatible integer to pointer conversion initializing 'struct asmdir *' with an expression of type 'YYSTYPE' (aka 'int') [-Wint-conversion]
struct asmdir *ad = yyvsp[0];
^ ~~~~~~~~
parser.y:167:17: error: incompatible integer to pointer conversion assigning to 'struct asmdir *' from 'YYSTYPE' (aka 'int') [-Wint-conversion]
s->u.asmdir = yyvsp[0];
^ ~~~~~~~~
parser.y:168:11: error: incompatible pointer to integer conversion assigning to 'YYSTYPE' (aka 'int') from 'struct statement *' [-Wint-conversion]
yyval = s;
^ ~
parser.y:170:11: error: incompatible pointer to integer conversion assigning to 'YYSTYPE' (aka 'int') from 'void *' [-Wint-conversion]
yyval = NULL;
^ ~~~~
parser.y:176:15: error: incompatible integer to pointer conversion assigning to 'struct label *' from 'YYSTYPE' (aka 'int') [-Wint-conversion]
s->u.label = yyvsp[0];
^ ~~~~~~~~
parser.y:177:10: error: incompatible pointer to integer conversion assigning to 'YYSTYPE' (aka 'int') from 'struct statement *' [-Wint-conversion]
yyval = s;
^ ~
parser.y:183:14: error: incompatible integer to pointer conversion assigning to 'struct instruction *' from 'YYSTYPE' (aka 'int') [-Wint-conversion]
s->u.insn = yyvsp[0];
^ ~~~~~~~~
parser.y:184:10: error: incompatible pointer to integer conversion assigning to 'YYSTYPE' (aka 'int') from 'struct statement *' [-Wint-conversion]
yyval = s;
^ ~
parser.y:190:14: error: incompatible integer to pointer conversion assigning to 'struct instruction *' from 'YYSTYPE' (aka 'int') [-Wint-conversion]
s->u.insn = yyvsp[0];
^ ~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment