Diff of the two buildlogs: -- --- b1/build.log 2025-08-29 10:55:52.156043983 +0000 +++ b2/build.log 2025-08-29 10:56:39.984101221 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu Oct 1 05:18:01 -12 2026 -I: pbuilder-time-stamp: 1790875081 +I: Current time: Sat Aug 30 00:55:54 +14 2025 +I: pbuilder-time-stamp: 1756464954 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/forky-reproducible-base.tgz] I: copying local configuration @@ -27,53 +27,85 @@ dpkg-source: info: applying gcc-15.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/3507290/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3214194/tmp/hooks/D01_modify_environment starting +debug: Running on codethink04-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Aug 29 10:56 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/3214194/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3214194/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='forky' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=forky + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='90c2b4ef246d407db0222de1cbe21d96' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='3507290' - PS1='# ' - PS2='> ' + INVOCATION_ID=910134193c6b4e04bdc1bbe41dee5c41 + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=3214194 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.05G36lip/pbuilderrc_BwYA --distribution forky --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/forky-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.05G36lip/b1 --logfile b1/build.log pccts_1.33MR33-6.5.dsc' - SUDO_GID='109' - SUDO_HOME='/var/lib/jenkins' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.05G36lip/pbuilderrc_TCV5 --distribution forky --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/forky-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.05G36lip/b2 --logfile b2/build.log pccts_1.33MR33-6.5.dsc' + SUDO_GID=109 + SUDO_HOME=/var/lib/jenkins + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink03-arm64 6.12.41+deb13-cloud-arm64 #1 SMP Debian 6.12.41-1 (2025-08-12) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.12.41+deb13-cloud-arm64 #1 SMP Debian 6.12.41-1 (2025-08-12) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 10 2025 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/3507290/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 10 12:30 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3214194/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -138,7 +170,7 @@ Get: 27 http://deb.debian.org/debian forky/main arm64 intltool-debian all 0.35.0+20060710.6 [22.9 kB] Get: 28 http://deb.debian.org/debian forky/main arm64 po-debconf all 1.0.21+nmu1 [248 kB] Get: 29 http://deb.debian.org/debian forky/main arm64 debhelper all 13.26 [939 kB] -Fetched 10.9 MB in 0s (86.6 MB/s) +Fetched 10.9 MB in 0s (71.6 MB/s) Preconfiguring packages ... Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19969 files and directories currently installed.) @@ -274,7 +306,11 @@ fakeroot is already the newest version (1.37.1.2-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/reproducible-path/pccts-1.33MR33/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../pccts_1.33MR33-6.5_source.changes +I: user script /srv/workspace/pbuilder/3214194/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for forky +I: user script /srv/workspace/pbuilder/3214194/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/pccts-1.33MR33/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../pccts_1.33MR33-6.5_source.changes dpkg-buildpackage: info: source package pccts dpkg-buildpackage: info: source version 1.33MR33-6.5 dpkg-buildpackage: info: source distribution unstable @@ -341,6 +377,8 @@ gen.c:54:9: warning: initialization of 'void (*)()' from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] 54 | (void (*)(...)) genRuleRef, | ^ +In file included from fset.c:39: +fset.c: In function 'rRuleRef': In file included from bits.c:36: bits.c: In function 'Efirst': bits.c:224:15: warning: passing argument 1 of 'fpReach[r->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] @@ -366,48 +404,9 @@ 56 | (void (*)(...)) genAction | ^ gen.c:56:9: note: (near initialization for 'C_Trans[4]') -bits.c: In function 'DefErrSetForC1': -bits.c:576:53: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=] - 576 | fprintf(ErrFile, "SetWordType %s%s[%d] = {", - | ~^ - | | - | int - | %ld -bits.c:582:56: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] - 582 | fprintf(ErrFile, "SetWordType zzerr%d[%d] = {", - | ~^ - | | - | int - | %ld globals.c:195:9: warning: initialization of 'struct _tree * (*)(Node *, int, set *)' {aka 'struct _tree * (*)(struct _node *, int, struct _set *)'} from incompatible pointer type 'struct _tree * (*)()' [-Wincompatible-pointer-types] 195 | (struct _tree *(*)(...)) tJunc, | ^ -bits.c: In function 'DefErrSetForCC1': -bits.c:644:63: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=] - 644 | fprintf(Parser_h, "\tstatic SetWordType %s%s[%d];\n", name, suffix, - | ~^ - | | - | int - | %ld -bits.c:646:58: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long unsigned int' [-Wformat=] - 646 | fprintf(Parser_c, "SetWordType %s::%s%s[%d] = {", - | ~^ - | | - | int - | %ld -bits.c:653:59: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=] - 653 | fprintf(Parser_c, "SetWordType %s::err%d[%d] = {", - | ~^ - | | - | int - | %ld -bits.c:657:64: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] - 657 | fprintf(Parser_h, "\tstatic SetWordType err%d[%d];\n", esetnum, - | ~^ - | | - | int - | %ld -bits.c: In function 'GenParser_c_Hdr': globals.c:195:9: note: (near initialization for 'fpTraverse[1]') globals.c:196:9: warning: initialization of 'struct _tree * (*)(Node *, int, set *)' {aka 'struct _tree * (*)(struct _node *, int, struct _set *)'} from incompatible pointer type 'struct _tree * (*)()' [-Wincompatible-pointer-types] 196 | (struct _tree *(*)(...)) tRuleRef, @@ -453,44 +452,8 @@ 219 | (void (*)(...)) pAction | ^ globals.c:219:9: note: (near initialization for 'fpPrint[4]') -In file included from gen.c:38: -gen.c: In function 'genBlk': -gen.c:1559:24: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 1559 | TRANS(q->p1); - | ~^~~~ - | | - | Node * {aka struct _node *} -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ -gen.c:1559:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 1559 | TRANS(q->p1); - | ~^~~~ -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ -gen.c:1559:24: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 1559 | TRANS(q->p1); - | ~^~~~ - | | - | Node * {aka struct _node *} -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ -bits.c:790:83: warning: format '%d' expects argument of type 'int', but argument 8 has type 'long unsigned int' [-Wformat=] - 790 | fprintf(Parser_c, "%s(ANTLRTokenBuffer *input) : %s(input,%d,%d,%d,%d)\n", - | ~^ - | | - | int - | %ld -gen.c:1559:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 1559 | TRANS(q->p1); - | ~^~~~ -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ -In file included from fset.c:39: -fset.c: In function 'rRuleRef': +In file included from fset2.c:44: +fset2.c: In function 'tRuleRef': fset.c:347:15: warning: passing argument 1 of 'fpReach[r->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 347 | REACH(r, k, &rk, a); | ^ @@ -505,22 +468,8 @@ syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ -bits.c: In function 'GenErrHdr': -bits.c:915:47: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] - 915 | fprintf(ErrFile, "#define zzSET_SIZE %d\n", NumWords(TokenNum-1)*sizeof(unsigned)); - | ~^ - | | - | int - | %ld fset.c: In function 'rAction': -gen.c:1644:26: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)alt->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 1644 | TRANS(alt->p1); - | ~~~^~~~ - | | - | Node * {aka struct _node *} -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ +bits.c: In function 'DefErrSetForC1': fset.c:448:26: warning: passing argument 1 of 'fpReach[p->guardNodes->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 448 | /* MR11 */ REACH(p->guardNodes,k,rk,a); | ~^~~~~~~~~~~~ @@ -535,85 +484,114 @@ syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ -gen.c:1644:26: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 1644 | TRANS(alt->p1); - | ~~~^~~~ -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ -gen.c:1644:26: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)alt->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 1644 | TRANS(alt->p1); - | ~~~^~~~ - | | - | Node * {aka struct _node *} -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ -gen.c:1644:26: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 1644 | TRANS(alt->p1); - | ~~~^~~~ -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ -gen.c: In function 'genAction': -gen.c:1978:16: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)p->next)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 1978 | TRANS(p->next) - | ~^~~~~~ - | | - | Node * {aka struct _node *} -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ -gen.c:1978:16: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 1978 | TRANS(p->next) - | ~^~~~~~ +bits.c:576:53: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=] + 576 | fprintf(ErrFile, "SetWordType %s%s[%d] = {", + | ~^ + | | + | int + | %ld +bits.c:582:56: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] + 582 | fprintf(ErrFile, "SetWordType zzerr%d[%d] = {", + | ~^ + | | + | int + | %ld +bits.c: In function 'DefErrSetForCC1': +bits.c:644:63: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=] + 644 | fprintf(Parser_h, "\tstatic SetWordType %s%s[%d];\n", name, suffix, + | ~^ + | | + | int + | %ld +fset2.c:714:14: warning: passing argument 1 of 'fpTraverse[r->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] + 714 | TRAV(r, k, &rk, t); + | ^ + | | + | Junction * {aka struct _junct *} +syn.h:179:81: note: in definition of macro 'TRAV' + 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} + | ^ +fset2.c:714:14: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} + 714 | TRAV(r, k, &rk, t); + | ^ +syn.h:179:81: note: in definition of macro 'TRAV' + 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} + | ^ +bits.c:646:58: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long unsigned int' [-Wformat=] + 646 | fprintf(Parser_c, "SetWordType %s::%s%s[%d] = {", + | ~^ + | | + | int + | %ld +bits.c:653:59: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=] + 653 | fprintf(Parser_c, "SetWordType %s::err%d[%d] = {", + | ~^ + | | + | int + | %ld +bits.c:657:64: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] + 657 | fprintf(Parser_h, "\tstatic SetWordType err%d[%d];\n", esetnum, + | ~^ + | | + | int + | %ld +fset2.c: In function 'tAction': +fset2.c:951:15: warning: passing argument 1 of 'fpTraverse[p->guardNodes->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] + 951 | TRAV(p->guardNodes,k,rk,t); + | ~^~~~~~~~~~~~ + | | + | struct _junct * +syn.h:179:81: note: in definition of macro 'TRAV' + 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} + | ^ +fset2.c:951:15: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'struct _junct *' + 951 | TRAV(p->guardNodes,k,rk,t); + | ~^~~~~~~~~~~~ +syn.h:179:81: note: in definition of macro 'TRAV' + 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} + | ^ +bits.c: In function 'GenParser_c_Hdr': +In file included from gen.c:38: +gen.c: In function 'genBlk': +bits.c:790:83: warning: format '%d' expects argument of type 'int', but argument 8 has type 'long unsigned int' [-Wformat=] + 790 | fprintf(Parser_c, "%s(ANTLRTokenBuffer *input) : %s(input,%d,%d,%d,%d)\n", + | ~^ + | | + | int + | %ld +gen.c:1559:24: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 1559 | TRANS(q->p1); + | ~^~~~ + | | + | Node * {aka struct _node *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ -gen.c:1978:16: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)p->next->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 1978 | TRANS(p->next) - | ~^~~~~~ - | | - | Node * {aka struct _node *} -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ -gen.c:1978:16: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 1978 | TRANS(p->next) - | ~^~~~~~ -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ -gen.c: In function 'genRuleRef': -gen.c:2225:16: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)p->next)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 2225 | TRANS(p->next) - | ~^~~~~~ - | | - | Node * {aka struct _node *} +gen.c:1559:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 1559 | TRANS(q->p1); + | ~^~~~ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ +fset2.c: In function 'VerifyAmbig': fset.c: In function 'First': -gen.c:2225:16: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 2225 | TRANS(p->next) - | ~^~~~~~ -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ -gen.c:2225:16: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)p->next->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 2225 | TRANS(p->next) - | ~^~~~~~ - | | - | Node * {aka struct _node *} -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ -gen.c:2225:16: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 2225 | TRANS(p->next) - | ~^~~~~~ +gen.c:1559:24: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 1559 | TRANS(q->p1); + | ~^~~~ + | | + | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ +fset2.c:1259:14: warning: passing argument 1 of 'fpTraverse[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] + 1259 | TRAV(p, LL_k, &rk, *t); + | ^ + | | + | Junction * {aka struct _junct *} +syn.h:179:81: note: in definition of macro 'TRAV' + 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} + | ^ +bits.c: In function 'GenErrHdr': fset.c:1498:23: warning: passing argument 1 of 'fpReach[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 1498 | REACH(p, k, &rk, alt1->fset[k]); | ^ @@ -622,29 +600,99 @@ syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ -gen.c: In function 'genToken': +gen.c:1559:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 1559 | TRANS(q->p1); + | ~^~~~ +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ +fset2.c:1259:14: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} + 1259 | TRAV(p, LL_k, &rk, *t); + | ^ +syn.h:179:81: note: in definition of macro 'TRAV' + 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} + | ^ +bits.c:915:47: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] + 915 | fprintf(ErrFile, "#define zzSET_SIZE %d\n", NumWords(TokenNum-1)*sizeof(unsigned)); + | ~^ + | | + | int + | %ld fset.c:1498:23: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} 1498 | REACH(p, k, &rk, alt1->fset[k]); | ^ syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ +gen.c:1644:26: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)alt->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 1644 | TRANS(alt->p1); + | ~~~^~~~ + | | + | Node * {aka struct _node *} +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ fset.c:1529:21: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1529 | if (AlphaBetaTrace) MR_MaintainBackTrace=0; | ^~ +gen.c:1644:26: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 1644 | TRANS(alt->p1); + | ~~~^~~~ +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ +fset2.c:1276:14: warning: passing argument 1 of 'fpTraverse[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] + 1276 | TRAV(p, LL_k, &rk, *u); + | ^ + | | + | Junction * {aka struct _junct *} +syn.h:179:81: note: in definition of macro 'TRAV' + 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} + | ^ +fset2.c:1276:14: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} + 1276 | TRAV(p, LL_k, &rk, *u); + | ^ +syn.h:179:81: note: in definition of macro 'TRAV' + 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} + | ^ +fset.c:1530:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 1530 | HandleAmbiguity(j, alt1, alt2, jtype); + | ^~~~~~~~~~~~~~~ main.c:560:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | ^~~ main.c:560:17: note: (near initialization for 'options[0].process.process_one_arg') +gen.c:1644:26: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)alt->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 1644 | TRANS(alt->p1); + | ~~~^~~~ + | | + | Node * {aka struct _node *} +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } +gen.c:1644:26: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 1644 | TRANS(alt->p1); + | ~~~^~~~ +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ main.c:561:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | ^~~ +fset.c:1540:47: warning: passing argument 1 of 'fpReach[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] + 1540 | REACH(p, k, &rk, alt1->fset[k]); + | ^ + | | + | Junction * {aka struct _junct *} +syn.h:173:73: note: in definition of macro 'REACH' + 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} + | ^ main.c:561:17: note: (near initialization for 'options[1].process.process_one_arg') main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { @@ -657,32 +705,14 @@ main.c:562:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | ^~~ -gen.c:2663:33: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)a->next)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 2663 | TRANS( a->next ); /* MR30 */ - | ~^~~~~~ - | | - | Node * {aka struct _node *} -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ -gen.c:2663:33: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 2663 | TRANS( a->next ); /* MR30 */ - | ~^~~~~~ -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ -gen.c:2663:33: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)a->next->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 2663 | TRANS( a->next ); /* MR30 */ - | ~^~~~~~ - | | - | Node * {aka struct _node *} -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ +fset.c:1540:47: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} + 1540 | REACH(p, k, &rk, alt1->fset[k]); + | ^ +syn.h:173:73: note: in definition of macro 'REACH' + 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} + | ^ main.c:562:17: note: (near initialization for 'options[2].process.process_one_arg') -fset.c:1530:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 1530 | HandleAmbiguity(j, alt1, alt2, jtype); - | ^~~~~~~~~~~~~~~ +fset2.c: In function 'computePredFromContextGuard': main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -697,6 +727,14 @@ 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | ^~~ main.c:563:17: note: (near initialization for 'options[3].process.process_one_arg') +fset.c:1542:47: warning: passing argument 1 of 'fpReach[q->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] + 1542 | REACH(q, k, &rk, alt2->fset[k]); + | ^ + | | + | Junction * {aka struct _junct *} +syn.h:173:73: note: in definition of macro 'REACH' + 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -709,24 +747,84 @@ | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } -fset.c:1540:47: warning: passing argument 1 of 'fpReach[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] - 1540 | REACH(p, k, &rk, alt1->fset[k]); - | ^ - | | - | Junction * {aka struct _junct *} -syn.h:173:73: note: in definition of macro 'REACH' - 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} - | ^ main.c:564:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | ^~~ -main.c:564:17: note: (near initialization for 'options[4].process.process_one_arg') -fset.c:1540:47: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} - 1540 | REACH(p, k, &rk, alt1->fset[k]); +fset.c:1542:47: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} + 1542 | REACH(q, k, &rk, alt2->fset[k]); | ^ syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ +fset2.c:1625:22: warning: passing argument 1 of 'fpTraverse[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] + 1625 | TRAV(p, hmax, &rk, t); /* MR10 was LL_k */ + | ^ + | | + | Junction * {aka struct _junct *} +syn.h:179:81: note: in definition of macro 'TRAV' + 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} + | ^ +gen.c: In function 'genAction': +fset2.c:1625:22: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} + 1625 | TRAV(p, hmax, &rk, t); /* MR10 was LL_k */ + | ^ +syn.h:179:81: note: in definition of macro 'TRAV' + 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} + | ^ +fset2.c:1640:23: warning: passing argument 1 of 'fpReach[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] + 1640 | REACH(p, 1, &rk, scontext); + | ^ + | | + | Junction * {aka struct _junct *} +syn.h:173:73: note: in definition of macro 'REACH' + 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} + | ^ +fset2.c:1640:23: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} + 1640 | REACH(p, 1, &rk, scontext); + | ^ +syn.h:173:73: note: in definition of macro 'REACH' + 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} + | ^ +fset2.c: In function 'recomputeContextGuard': +fset2.c:1685:22: warning: passing argument 1 of 'fpTraverse[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] + 1685 | TRAV(p, pred->k, &rk, t); + | ^ + | | + | Junction * {aka struct _junct *} +syn.h:179:81: note: in definition of macro 'TRAV' + 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} + | ^ +fset2.c:1685:22: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} + 1685 | TRAV(p, pred->k, &rk, t); + | ^ +syn.h:179:81: note: in definition of macro 'TRAV' + 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} + | ^ +fset2.c:1696:23: warning: passing argument 1 of 'fpReach[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] + 1696 | REACH(p, 1, &rk, scontext); + | ^ + | | + | Junction * {aka struct _junct *} +syn.h:173:73: note: in definition of macro 'REACH' + 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} + | ^ +fset2.c:1696:23: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} + 1696 | REACH(p, 1, &rk, scontext); + | ^ +syn.h:173:73: note: in definition of macro 'REACH' + 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} + | ^ +main.c:564:17: note: (near initialization for 'options[4].process.process_one_arg') +cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o misc.o misc.c +gen.c:1978:16: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)p->next)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 1978 | TRANS(p->next) + | ~^~~~~~ + | | + | Node * {aka struct _node *} +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ +fset2.c: In function 'MR_traceAmbSourceKclient': main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -741,24 +839,30 @@ | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } -gen.c:2663:33: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 2663 | TRANS( a->next ); /* MR30 */ - | ~^~~~~~ -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ +fset2.c:1772:29: warning: passing argument 1 of 'fpTraverse[MR_AmbSourceSearchJ[i]->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] + 1772 | TRAV(MR_AmbSourceSearchJ[i],maxk,&incomplete,t); + | ~~~~~~~~~~~~~~~~~~~^~~ + | | + | Junction * {aka struct _junct *} +syn.h:179:81: note: in definition of macro 'TRAV' + 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} + | ^ main.c:565:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | ^~~ main.c:565:17: note: (near initialization for 'options[5].process.process_one_arg') -fset.c:1542:47: warning: passing argument 1 of 'fpReach[q->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] - 1542 | REACH(q, k, &rk, alt2->fset[k]); - | ^ - | | - | Junction * {aka struct _junct *} -syn.h:173:73: note: in definition of macro 'REACH' - 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} - | ^ +gen.c:1978:16: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 1978 | TRANS(p->next) + | ~^~~~~~ +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ +fset2.c:1772:29: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} + 1772 | TRAV(MR_AmbSourceSearchJ[i],maxk,&incomplete,t); + | ~~~~~~~~~~~~~~~~~~~^~~ +syn.h:179:81: note: in definition of macro 'TRAV' + 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -775,24 +879,18 @@ | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } -fset.c:1542:47: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} - 1542 | REACH(q, k, &rk, alt2->fset[k]); - | ^ -syn.h:173:73: note: in definition of macro 'REACH' - 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} - | ^ main.c:566:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | ^~~~~~~~~ -gen.c:2666:33: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)p->next)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 2666 | TRANS( p->next ); /* MR30 */ - | ~^~~~~~ - | | - | Node * {aka struct _node *} -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ main.c:566:17: note: (near initialization for 'options[6].process.process_one_arg') +gen.c:1978:16: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)p->next->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 1978 | TRANS(p->next) + | ~^~~~~~ + | | + | Node * {aka struct _node *} +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -811,33 +909,16 @@ | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } -cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o misc.o misc.c -gen.c:2666:33: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 2666 | TRANS( p->next ); /* MR30 */ - | ~^~~~~~ -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ -In file included from fset2.c:44: -fset2.c: In function 'tRuleRef': -fset2.c:714:14: warning: passing argument 1 of 'fpTraverse[r->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] - 714 | TRAV(r, k, &rk, t); - | ^ - | | - | Junction * {aka struct _junct *} -syn.h:179:81: note: in definition of macro 'TRAV' - 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} - | ^ +gen.c:1978:16: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 1978 | TRANS(p->next) + | ~^~~~~~ +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ main.c:567:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 567 | { "-fe", 1, pFe, "Rename err.c"}, | ^~~ main.c:567:17: note: (near initialization for 'options[7].process.process_one_arg') -fset2.c:714:14: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} - 714 | TRAV(r, k, &rk, t); - | ^ -syn.h:179:81: note: in definition of macro 'TRAV' - 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} - | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -858,24 +939,20 @@ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } -gen.c:2666:33: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)p->next->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 2666 | TRANS( p->next ); /* MR30 */ - | ~^~~~~~ - | | - | Node * {aka struct _node *} -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ -gen.c:2666:33: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 2666 | TRANS( p->next ); /* MR30 */ - | ~^~~~~~ -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ +fset2.c: In function 'MR_traceAmbSource': main.c:568:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | ^~~~~ main.c:568:17: note: (near initialization for 'options[8].process.process_one_arg') +fset2.c:2020:20: warning: passing argument 1 of 'fpReach[p[i]->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] + 2020 | REACH(p[i],depth,&incomplete,tokensUsed); + | ~^~~ + | | + | Junction * {aka struct _junct *} +syn.h:173:73: note: in definition of macro 'REACH' + 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} + | ^ +gen.c: In function 'genRuleRef': main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -898,24 +975,24 @@ | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } -gen.c:2686:24: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)p->next)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 2686 | TRANS(p->next); - | ~^~~~~~ - | | - | Node * {aka struct _node *} -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ main.c:569:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | ^~~ main.c:569:17: note: (near initialization for 'options[9].process.process_one_arg') -gen.c:2686:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 2686 | TRANS(p->next); - | ~^~~~~~ +gen.c:2225:16: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)p->next)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 2225 | TRANS(p->next) + | ~^~~~~~ + | | + | Node * {aka struct _node *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ +fset2.c:2020:20: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} + 2020 | REACH(p[i],depth,&incomplete,tokensUsed); + | ~^~~ +syn.h:173:73: note: in definition of macro 'REACH' + 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -944,6 +1021,12 @@ 570 | { "-fm", 1, pFm, "Rename mode.h"}, | ^~~ main.c:570:17: note: (near initialization for 'options[10].process.process_one_arg') +gen.c:2225:16: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 2225 | TRANS(p->next) + | ~^~~~~~ +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -970,33 +1053,24 @@ | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } -gen.c:2686:24: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)p->next->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 2686 | TRANS(p->next); - | ~^~~~~~ - | | - | Node * {aka struct _node *} -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ main.c:571:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 571 | { "-fr", 1, pFr, "Rename remap.h"}, | ^~~ main.c:571:17: note: (near initialization for 'options[11].process.process_one_arg') -gen.c:2686:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 2686 | TRANS(p->next); - | ~^~~~~~ +gen.c:2225:16: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)p->next->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 2225 | TRANS(p->next) + | ~^~~~~~ + | | + | Node * {aka struct _node *} +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ +gen.c:2225:16: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 2225 | TRANS(p->next) + | ~^~~~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ -gen.c: In function 'genOptBlk': -gen.c:2764:45: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->end->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 2764 | if (q->end->p1 != NULL) TRANS(q->end->p1); - | ~~~~~~^~~~ - | | - | Node * {aka struct _node *} -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -1025,25 +1099,10 @@ | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } -gen.c:2764:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 2764 | if (q->end->p1 != NULL) TRANS(q->end->p1); - | ~~~~~~^~~~ -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ main.c:572:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | ^~~ main.c:572:17: note: (near initialization for 'options[12].process.process_one_arg') -fset2.c: In function 'tAction': -fset2.c:951:15: warning: passing argument 1 of 'fpTraverse[p->guardNodes->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] - 951 | TRAV(p->guardNodes,k,rk,t); - | ~^~~~~~~~~~~~ - | | - | struct _junct * -syn.h:179:81: note: in definition of macro 'TRAV' - 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} - | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -1074,45 +1133,10 @@ | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } -fset2.c:951:15: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'struct _junct *' - 951 | TRAV(p->guardNodes,k,rk,t); - | ~^~~~~~~~~~~~ -syn.h:179:81: note: in definition of macro 'TRAV' - 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} - | ^ -gen.c:2764:45: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->end->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 2764 | if (q->end->p1 != NULL) TRANS(q->end->p1); - | ~~~~~~^~~~ - | | - | Node * {aka struct _node *} -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ -gen.c:2764:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 2764 | if (q->end->p1 != NULL) TRANS(q->end->p1); - | ~~~~~~^~~~ -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ -gen.c: In function 'genLoopBlk': -gen.c:2833:24: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 2833 | TRANS(q->p1); - | ~^~~~ - | | - | Node * {aka struct _node *} -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ main.c:573:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | ^~~~~ main.c:573:17: note: (near initialization for 'options[13].process.process_one_arg') -gen.c:2833:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 2833 | TRANS(q->p1); - | ~^~~~ -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -1183,39 +1207,25 @@ | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } -gen.c:2833:24: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 2833 | TRANS(q->p1); - | ~^~~~ - | | - | Node * {aka struct _node *} -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ -fset2.c: In function 'VerifyAmbig': main.c:575:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | ^~~~~ +gen.c: In function 'genToken': +gen.c:2663:33: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)a->next)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 2663 | TRANS( a->next ); /* MR30 */ + | ~^~~~~~ + | | + | Node * {aka struct _node *} +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ main.c:575:17: note: (near initialization for 'options[15].process.process_one_arg') -fset2.c:1259:14: warning: passing argument 1 of 'fpTraverse[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] - 1259 | TRAV(p, LL_k, &rk, *t); - | ^ - | | - | Junction * {aka struct _junct *} -syn.h:179:81: note: in definition of macro 'TRAV' - 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} - | ^ -fset2.c:1259:14: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} - 1259 | TRAV(p, LL_k, &rk, *t); - | ^ -syn.h:179:81: note: in definition of macro 'TRAV' - 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} - | ^ -gen.c:2833:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 2833 | TRANS(q->p1); - | ~^~~~ -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ +gen.c:2663:33: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 2663 | TRANS( a->next ); /* MR30 */ + | ~^~~~~~ +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -1252,50 +1262,15 @@ | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } -fset2.c:1276:14: warning: passing argument 1 of 'fpTraverse[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] - 1276 | TRAV(p, LL_k, &rk, *u); - | ^ - | | - | Junction * {aka struct _junct *} -syn.h:179:81: note: in definition of macro 'TRAV' - 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} - | ^ -fset2.c:1276:14: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} - 1276 | TRAV(p, LL_k, &rk, *u); - | ^ -syn.h:179:81: note: in definition of macro 'TRAV' - 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} - | ^ -gen.c: In function 'genLoopBegin': -gen.c:3003:45: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->end->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 3003 | if (q->end->p1 != NULL) TRANS(q->end->p1); - | ~~~~~~^~~~ - | | - | Node * {aka struct _node *} -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ -gen.c:3003:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 3003 | if (q->end->p1 != NULL) TRANS(q->end->p1); - | ~~~~~~^~~~ -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ -gen.c:3003:45: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->end->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 3003 | if (q->end->p1 != NULL) TRANS(q->end->p1); - | ~~~~~~^~~~ - | | - | Node * {aka struct _node *} -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ main.c:576:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | ^~~~~ main.c:576:17: note: (near initialization for 'options[16].process.process_one_arg') -gen.c:3003:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 3003 | if (q->end->p1 != NULL) TRANS(q->end->p1); - | ~~~~~~^~~~ +gen.c:2663:33: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)a->next->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 2663 | TRANS( a->next ); /* MR30 */ + | ~^~~~~~ + | | + | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ @@ -1337,6 +1312,12 @@ | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } +gen.c:2663:33: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 2663 | TRANS( a->next ); /* MR30 */ + | ~^~~~~~ +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ main.c:577:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | ^~~~~ @@ -1381,34 +1362,10 @@ | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } -gen.c: In function 'genPlusBlk': -gen.c:3098:24: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 3098 | TRANS(q->p1); - | ~^~~~ - | | - | Node * {aka struct _node *} -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ main.c:578:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | ^~~ main.c:578:17: note: (near initialization for 'options[18].process.process_one_arg') -fset2.c: In function 'computePredFromContextGuard': -gen.c:3098:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 3098 | TRANS(q->p1); - | ~^~~~ -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ -fset2.c:1625:22: warning: passing argument 1 of 'fpTraverse[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] - 1625 | TRAV(p, hmax, &rk, t); /* MR10 was LL_k */ - | ^ - | | - | Junction * {aka struct _junct *} -syn.h:179:81: note: in definition of macro 'TRAV' - 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} - | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -1451,45 +1408,51 @@ | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } -main.c:579:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] - 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, - | ^~~ -main.c:579:17: note: (near initialization for 'options[19].process.process_one_arg') -fset2.c:1625:22: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} - 1625 | TRAV(p, hmax, &rk, t); /* MR10 was LL_k */ - | ^ -syn.h:179:81: note: in definition of macro 'TRAV' - 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} - | ^ -gen.c:3098:24: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 3098 | TRANS(q->p1); - | ~^~~~ - | | - | Node * {aka struct _node *} +gen.c:2666:33: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)p->next)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 2666 | TRANS( p->next ); /* MR30 */ + | ~^~~~~~ + | | + | Node * {aka struct _node *} +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ +gen.c:2666:33: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 2666 | TRANS( p->next ); /* MR30 */ + | ~^~~~~~ +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ +hash.c: In function 'hash_get': +hash.c:135:44: warning: array subscript 0 is outside array bounds of 'char[0]' [-Warray-bounds=] + 135 | if ( !(table!=NULL && key!=NULL) ) *((char *) 34) = 3; + | ^~~~~~~~~~~~~~ +cc1: note: source object is likely at address zero +gen.c:2666:33: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)p->next->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 2666 | TRANS( p->next ); /* MR30 */ + | ~^~~~~~ + | | + | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ -fset2.c:1640:23: warning: passing argument 1 of 'fpReach[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] - 1640 | REACH(p, 1, &rk, scontext); - | ^ - | | - | Junction * {aka struct _junct *} -syn.h:173:73: note: in definition of macro 'REACH' - 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} - | ^ -fset2.c:1640:23: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} - 1640 | REACH(p, 1, &rk, scontext); - | ^ -syn.h:173:73: note: in definition of macro 'REACH' - 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} - | ^ -fset2.c: In function 'recomputeContextGuard': -gen.c:3098:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 3098 | TRANS(q->p1); - | ~^~~~ +gen.c:2666:33: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 2666 | TRANS( p->next ); /* MR30 */ + | ~^~~~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ +main.c:579:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] + 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, + | ^~~ +main.c:579:17: note: (near initialization for 'options[19].process.process_one_arg') +gen.c:2686:24: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)p->next)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 2686 | TRANS(p->next); + | ~^~~~~~ + | | + | Node * {aka struct _node *} +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -1534,53 +1497,10 @@ | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } -fset2.c:1685:22: warning: passing argument 1 of 'fpTraverse[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] - 1685 | TRAV(p, pred->k, &rk, t); - | ^ - | | - | Junction * {aka struct _junct *} -syn.h:179:81: note: in definition of macro 'TRAV' - 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} - | ^ -fset2.c:1685:22: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} - 1685 | TRAV(p, pred->k, &rk, t); - | ^ -syn.h:179:81: note: in definition of macro 'TRAV' - 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} - | ^ -fset2.c:1696:23: warning: passing argument 1 of 'fpReach[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] - 1696 | REACH(p, 1, &rk, scontext); - | ^ - | | - | Junction * {aka struct _junct *} -syn.h:173:73: note: in definition of macro 'REACH' - 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} - | ^ -fset2.c:1696:23: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} - 1696 | REACH(p, 1, &rk, scontext); - | ^ -syn.h:173:73: note: in definition of macro 'REACH' - 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} - | ^ -fset2.c: In function 'MR_traceAmbSourceKclient': -fset2.c:1772:29: warning: passing argument 1 of 'fpTraverse[MR_AmbSourceSearchJ[i]->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] - 1772 | TRAV(MR_AmbSourceSearchJ[i],maxk,&incomplete,t); - | ~~~~~~~~~~~~~~~~~~~^~~ - | | - | Junction * {aka struct _junct *} -syn.h:179:81: note: in definition of macro 'TRAV' - 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} - | ^ main.c:580:19: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | ^~~~~ main.c:580:19: note: (near initialization for 'options[20].process.process_one_arg') -fset2.c:1772:29: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} - 1772 | TRAV(MR_AmbSourceSearchJ[i],maxk,&incomplete,t); - | ~~~~~~~~~~~~~~~~~~~^~~ -syn.h:179:81: note: in definition of macro 'TRAV' - 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} - | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -1631,28 +1551,6 @@ 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | ^~~~ main.c:581:17: note: (near initialization for 'options[21].process.process_one_arg') -gen.c:3139:53: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->end->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 3139 | if (q->end->p1 != NULL) TRANS(q->end->p1); - | ~~~~~~^~~~ - | | - | Node * {aka struct _node *} -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ -gen.c:3139:53: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 3139 | if (q->end->p1 != NULL) TRANS(q->end->p1); - | ~~~~~~^~~~ -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ -gen.c:3139:53: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->end->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 3139 | if (q->end->p1 != NULL) TRANS(q->end->p1); - | ~~~~~~^~~~ - | | - | Node * {aka struct _node *} -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -1701,16 +1599,45 @@ | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } +gen.c:2686:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 2686 | TRANS(p->next); + | ~^~~~~~ +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ +gen.c:2686:24: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)p->next->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 2686 | TRANS(p->next); + | ~^~~~~~ + | | + | Node * {aka struct _node *} +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ +gen.c:2686:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 2686 | TRANS(p->next); + | ~^~~~~~ +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ +gen.c: In function 'genOptBlk': main.c:582:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | ^~~~~ main.c:582:17: note: (near initialization for 'options[22].process.process_one_arg') -gen.c:3139:53: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 3139 | if (q->end->p1 != NULL) TRANS(q->end->p1); - | ~~~~~~^~~~ -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ +gen.c:2764:45: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->end->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 2764 | if (q->end->p1 != NULL) TRANS(q->end->p1); + | ~~~~~~^~~~ + | | + | Node * {aka struct _node *} +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ +gen.c:2764:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 2764 | if (q->end->p1 != NULL) TRANS(q->end->p1); + | ~~~~~~^~~~ +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -1765,23 +1692,6 @@ 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | ^~~~ main.c:583:17: note: (near initialization for 'options[23].process.process_one_arg') -fset2.c: In function 'MR_traceAmbSource': -gen.c:3212:45: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->end->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 3212 | if (q->end->p1 != NULL) TRANS(q->end->p1); - | ~~~~~~^~~~ - | | - | Node * {aka struct _node *} -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ -fset2.c:2020:20: warning: passing argument 1 of 'fpReach[p[i]->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] - 2020 | REACH(p[i],depth,&incomplete,tokensUsed); - | ~^~~ - | | - | Junction * {aka struct _junct *} -syn.h:173:73: note: in definition of macro 'REACH' - 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} - | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -1834,22 +1744,10 @@ | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } -fset2.c:2020:20: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} - 2020 | REACH(p[i],depth,&incomplete,tokensUsed); - | ~^~~ -syn.h:173:73: note: in definition of macro 'REACH' - 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} - | ^ main.c:584:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | ^~~~~ main.c:584:17: note: (near initialization for 'options[24].process.process_one_arg') -gen.c:3212:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 3212 | if (q->end->p1 != NULL) TRANS(q->end->p1); - | ~~~~~~^~~~ -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -1904,27 +1802,47 @@ | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } -main.c:585:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] - 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, - | ^~~~~~ -gen.c:3212:45: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->end->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 3212 | if (q->end->p1 != NULL) TRANS(q->end->p1); +gen.c:2764:45: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->end->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 2764 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ | | | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ +gen.c:2764:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 2764 | if (q->end->p1 != NULL) TRANS(q->end->p1); + | ~~~~~~^~~~ +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ +gen.c: In function 'genLoopBlk': +gen.c:2833:24: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 2833 | TRANS(q->p1); + | ~^~~~ + | | + | Node * {aka struct _node *} +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ +main.c:585:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] + 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, + | ^~~~~~ main.c:585:17: note: (near initialization for 'options[25].process.process_one_arg') -In file included from err.c:28: -../h/err.h: In function 'zzFAIL': -../h/err.h:217:19: warning: 'f$' may be used uninitialized [-Wmaybe-uninitialized] - 217 | *miss_set = f[i-1]; - | ~~~~~~~~~~^~~~~~~~ -../h/err.h:168:22: note: 'f$' was declared here - 168 | SetWordType *f[1]; - | ^ -hash.c: In function 'hash_get': +gen.c:2833:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 2833 | TRANS(q->p1); + | ~^~~~ +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ +gen.c:2833:24: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 2833 | TRANS(q->p1); + | ~^~~~ + | | + | Node * {aka struct _node *} +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -1981,17 +1899,10 @@ | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } -gen.c:3212:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 3212 | if (q->end->p1 != NULL) TRANS(q->end->p1); - | ~~~~~~^~~~ -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ main.c:586:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | ^~~~ main.c:586:17: note: (near initialization for 'options[26].process.process_one_arg') -gen.c: In function 'genSubBlk': main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -2050,42 +1961,25 @@ | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } +In file included from err.c:28: +../h/err.h: In function 'zzFAIL': +../h/err.h:217:19: warning: 'f$' may be used uninitialized [-Wmaybe-uninitialized] + 217 | *miss_set = f[i-1]; + | ~~~~~~~~~~^~~~~~~~ +../h/err.h:168:22: note: 'f$' was declared here + 168 | SetWordType *f[1]; + | ^ main.c:587:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 587 | { "-o", 1, pOut, OutputDirectoryOption}, | ^~~~ main.c:587:17: note: (near initialization for 'options[27].process.process_one_arg') -gen.c:3308:45: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->end->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 3308 | if (q->end->p1 != NULL) TRANS(q->end->p1); - | ~~~~~~^~~~ - | | - | Node * {aka struct _node *} -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ -gen.c:3308:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 3308 | if (q->end->p1 != NULL) TRANS(q->end->p1); - | ~~~~~~^~~~ -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ -gen.c:3308:45: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->end->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 3308 | if (q->end->p1 != NULL) TRANS(q->end->p1); - | ~~~~~~^~~~ - | | - | Node * {aka struct _node *} -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ -gen.c:3308:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 3308 | if (q->end->p1 != NULL) TRANS(q->end->p1); - | ~~~~~~^~~~ +gen.c:2833:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 2833 | TRANS(q->p1); + | ~^~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ -hash.c:135:44: warning: array subscript 0 is outside array bounds of 'char[0]' [-Warray-bounds=] - 135 | if ( !(table!=NULL && key!=NULL) ) *((char *) 34) = 3; - | ^~~~~~~~~~~~~~ -cc1: note: source object is likely at address zero +gen.c: In function 'genLoopBegin': main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -2146,25 +2040,24 @@ | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } -gen.c: In function 'genRule': -gen.c:3552:24: warning: passing argument 1 of 'fpReach[q->end->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] - 3552 | REACH(q->end, 1, &rk, follow); - | ~^~~~~ - | | - | struct _junct * -syn.h:173:73: note: in definition of macro 'REACH' - 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} - | ^ main.c:588:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | ^~~~ main.c:588:17: note: (near initialization for 'options[28].process.process_one_arg') -gen.c:3552:24: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'struct _junct *' - 3552 | REACH(q->end, 1, &rk, follow); - | ~^~~~~ -syn.h:173:73: note: in definition of macro 'REACH' - 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} - | ^ +gen.c:3003:45: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->end->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 3003 | if (q->end->p1 != NULL) TRANS(q->end->p1); + | ~~~~~~^~~~ + | | + | Node * {aka struct _node *} +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ +gen.c:3003:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 3003 | if (q->end->p1 != NULL) TRANS(q->end->p1); + | ~~~~~~^~~~ +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -2227,19 +2120,24 @@ | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } +gen.c:3003:45: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->end->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 3003 | if (q->end->p1 != NULL) TRANS(q->end->p1); + | ~~~~~~^~~~ + | | + | Node * {aka struct _node *} +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ +gen.c:3003:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 3003 | if (q->end->p1 != NULL) TRANS(q->end->p1); + | ~~~~~~^~~~ +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ main.c:589:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | ^~~~~ main.c:589:17: note: (near initialization for 'options[29].process.process_one_arg') -gen.c: In function 'genJunction': -gen.c:3813:37: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 3813 | if ( q->p1 != NULL ) TRANS(q->p1); - | ~^~~~ - | | - | Node * {aka struct _node *} -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -2304,52 +2202,33 @@ | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } -gen.c:3813:37: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 3813 | if ( q->p1 != NULL ) TRANS(q->p1); - | ~^~~~ -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ - | ^ -gen.c:3813:37: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 3813 | if ( q->p1 != NULL ) TRANS(q->p1); - | ~^~~~ - | | - | Node * {aka struct _node *} -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ -gen.c:3813:37: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 3813 | if ( q->p1 != NULL ) TRANS(q->p1); - | ~^~~~ -syn.h:167:72: note: in definition of macro 'TRANS' - 167 | else (*(fpTrans[(p)->ntype]))( p );} - | ^ -gen.c:3814:37: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->p2)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 3814 | if ( q->p2 != NULL ) TRANS(q->p2); - | ~^~~~ - | | - | Node * {aka struct _node *} +gen.c: In function 'genPlusBlk': +gen.c:3098:24: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 3098 | TRANS(q->p1); + | ~^~~~ + | | + | Node * {aka struct _node *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ -gen.c:3814:37: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 3814 | if ( q->p2 != NULL ) TRANS(q->p2); - | ~^~~~ +gen.c:3098:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 3098 | TRANS(q->p1); + | ~^~~~ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ main.c:590:16: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | ^~~~~ -main.c:590:16: note: (near initialization for 'options[30].process.process_one_arg') -gen.c:3814:37: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->p2->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] - 3814 | if ( q->p2 != NULL ) TRANS(q->p2); - | ~^~~~ - | | - | Node * {aka struct _node *} +gen.c:3098:24: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 3098 | TRANS(q->p1); + | ~^~~~ + | | + | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ +main.c:590:16: note: (near initialization for 'options[30].process.process_one_arg') main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -2420,39 +2299,12 @@ 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | ^~~~~~~~ main.c:591:18: note: (near initialization for 'options[31].process.process_one_arg') -gen.c:3814:37: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 3814 | if ( q->p2 != NULL ) TRANS(q->p2); - | ~^~~~ +gen.c:3098:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 3098 | TRANS(q->p1); + | ~^~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ -In file included from antlr.c:25: -antlr.c: In function 'zzconstr_attr': -../h/antlr.h:339:63: warning: 'a' is used uninitialized [-Wuninitialized] - 339 | {Attrib a; zzcr_attr((&a),_tok,_text); return a;} \ - | ^ -antlr.c:36:1: note: in expansion of macro 'ANTLR_INFO' - 36 | ANTLR_INFO - | ^~~~~~~~~~ -../h/antlr.h:339:25: note: 'a' declared here - 339 | {Attrib a; zzcr_attr((&a),_tok,_text); return a;} \ - | ^ -antlr.c:36:1: note: in expansion of macro 'ANTLR_INFO' - 36 | ANTLR_INFO - | ^~~~~~~~~~ -gen.c: In function 'genHdr': -gen.c:3903:29: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] - 3903 | if ( !GenCC ) _gen1("#define zzSET_SIZE %d\n", NumWords(TokenNum-1)*sizeof(unsigned)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -gen.c:152:50: note: in definition of macro '_gen1' - 152 | #define _gen1(s,a) {fprintf(output, s,a);} - | ^ -gen.c:3903:50: note: format string is defined here - 3903 | if ( !GenCC ) _gen1("#define zzSET_SIZE %d\n", NumWords(TokenNum-1)*sizeof(unsigned)); - | ~^ - | | - | int - | %ld main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -2521,17 +2373,39 @@ | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } +cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -c -o set.o ../support/set/set.c +gen.c:3139:53: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->end->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 3139 | if (q->end->p1 != NULL) TRANS(q->end->p1); + | ~~~~~~^~~~ + | | + | Node * {aka struct _node *} +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ +gen.c:3139:53: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 3139 | if (q->end->p1 != NULL) TRANS(q->end->p1); + | ~~~~~~^~~~ +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ main.c:592:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | ^~~~~ main.c:592:17: note: (near initialization for 'options[32].process.process_one_arg') -gen.c: In function 'genStdPCCTSIncludeFile': -gen.c:4117:41: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] - 4117 | fprintf(f, "#define zzSET_SIZE %d\n", NumWords(TokenNum-1)*sizeof(unsigned)); - | ~^ - | | - | int - | %ld +gen.c:3139:53: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->end->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 3139 | if (q->end->p1 != NULL) TRANS(q->end->p1); + | ~~~~~~^~~~ + | | + | Node * {aka struct _node *} +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ +gen.c:3139:53: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 3139 | if (q->end->p1 != NULL) TRANS(q->end->p1); + | ~~~~~~^~~~ +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -2606,6 +2480,14 @@ 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | ^~~~~~~ main.c:593:20: note: (near initialization for 'options[33].process.process_one_arg') +gen.c:3212:45: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->end->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 3212 | if (q->end->p1 != NULL) TRANS(q->end->p1); + | ~~~~~~^~~~ + | | + | Node * {aka struct _node *} +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -2678,6 +2560,26 @@ | { } 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | { } +gen.c:3212:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 3212 | if (q->end->p1 != NULL) TRANS(q->end->p1); + | ~~~~~~^~~~ +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ +gen.c:3212:45: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->end->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 3212 | if (q->end->p1 != NULL) TRANS(q->end->p1); + | ~~~~~~^~~~ + | | + | Node * {aka struct _node *} +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ +gen.c:3212:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 3212 | if (q->end->p1 != NULL) TRANS(q->end->p1); + | ~~~~~~^~~~ +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ main.c:594:18: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 594 | { "-tab", 1, pTab, "Width of tabs (1 to 8) for grammar.c/grammar.cpp files"}, /* MR6 */ | ^~~~ @@ -2760,6 +2662,15 @@ 595 | { "-w1", 0, pW1, "Set the warning level to 1 (default)"}, | ^~~ main.c:595:21: note: (near initialization for 'options[35].process.process_one_arg') +gen.c: In function 'genSubBlk': +gen.c:3308:45: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->end->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 3308 | if (q->end->p1 != NULL) TRANS(q->end->p1); + | ~~~~~~^~~~ + | | + | Node * {aka struct _node *} +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -2836,10 +2747,30 @@ | { } 595 | { "-w1", 0, pW1, "Set the warning level to 1 (default)"}, | { } +gen.c:3308:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 3308 | if (q->end->p1 != NULL) TRANS(q->end->p1); + | ~~~~~~^~~~ +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ main.c:596:21: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 596 | { "-w2", 0, pW2, "Ambiguities yield warnings even if predicates or (...)? block"}, | ^~~ main.c:596:21: note: (near initialization for 'options[36].process.process_one_arg') +gen.c:3308:45: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->end->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 3308 | if (q->end->p1 != NULL) TRANS(q->end->p1); + | ~~~~~~^~~~ + | | + | Node * {aka struct _node *} +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ +gen.c:3308:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 3308 | if (q->end->p1 != NULL) TRANS(q->end->p1); + | ~~~~~~^~~~ +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -3002,10 +2933,21 @@ | { } 597 | { "-mrhoist",1,pMRhoist, /* MR9 */ | { } +gen.c: In function 'genRule': +gen.c:3552:24: warning: passing argument 1 of 'fpReach[q->end->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] + 3552 | REACH(q->end, 1, &rk, follow); + | ~^~~~~ + | | + | struct _junct * +syn.h:173:73: note: in definition of macro 'REACH' + 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} + | ^ main.c:599:21: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 599 | { "-mrhoistk",1,pMRhoistk, /* MR13 */ | ^~~~~~~~~ main.c:599:21: note: (near initialization for 'options[38].process.process_one_arg') +In file included from ../support/set/set.c:67: +../support/set/set.c: In function 'set_of': main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -3089,11 +3031,62 @@ 598 | "Turn on/off k=1 Maintenance Release style hoisting"}, /* MR9 */ 599 | { "-mrhoistk",1,pMRhoistk, /* MR13 */ | { } -cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -c -o set.o ../support/set/set.c main.c:601:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 601 | { "-aa" ,1,pAA, "Ambiguity aid for a rule (rule name or line number)"}, /* MR11 */ | ^~~ +gen.c:3552:24: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'struct _junct *' + 3552 | REACH(q->end, 1, &rk, follow); + | ~^~~~~ +syn.h:173:73: note: in definition of macro 'REACH' + 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} + | ^ +gen.c: In function 'genJunction': main.c:601:17: note: (near initialization for 'options[39].process.process_one_arg') +../support/set/set.h:57:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 57 | if (((a).setword=(unsigned *)calloc(NumWords(_max),BytesPerWord))==NULL) \ + | ^~ +../support/set/set.c:266:9: note: in expansion of macro 'set_new' + 266 | set_new(a, b); + | ^~~~~~~ +../support/set/set.h:59:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 59 | (a).n = NumWords(_max); + | ^ +../support/set/set.c:266:9: note: in expansion of macro 'set_new' + 266 | set_new(a, b); + | ^~~~~~~ +gen.c:3813:37: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 3813 | if ( q->p1 != NULL ) TRANS(q->p1); + | ~^~~~ + | | + | Node * {aka struct _node *} +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ +../support/set/set.c: In function 'set_val': +../support/set/set.h:58:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] + 58 | fprintf(stderr, "set_new: Cannot allocate set with max of %d\n", _max); \ + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../support/set/set.c:557:9: note: in expansion of macro 'set_new' + 557 | set_new(a, strlen(s)); + | ^~~~~~~ +../support/set/set.h:58:68: note: format string is defined here + 58 | fprintf(stderr, "set_new: Cannot allocate set with max of %d\n", _max); \ + | ~^ + | | + | int + | %ld +../support/set/set.h:57:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 57 | if (((a).setword=(unsigned *)calloc(NumWords(_max),BytesPerWord))==NULL) \ + | ^~ +../support/set/set.c:557:9: note: in expansion of macro 'set_new' + 557 | set_new(a, strlen(s)); + | ^~~~~~~ +../support/set/set.h:59:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 59 | (a).n = NumWords(_max); + | ^ +../support/set/set.c:557:9: note: in expansion of macro 'set_new' + 557 | set_new(a, strlen(s)); + | ^~~~~~~ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -3180,6 +3173,14 @@ 600 | "Turn on/off k>1 EXPERIMENTAL Maintenance Release style hoisting"}, /* MR13 */ 601 | { "-aa" ,1,pAA, "Ambiguity aid for a rule (rule name or line number)"}, /* MR11 */ | { } +In file included from antlr.c:25: +antlr.c: In function 'zzconstr_attr': +gen.c:3813:37: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 3813 | if ( q->p1 != NULL ) TRANS(q->p1); + | ~^~~~ +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -3268,10 +3269,44 @@ | { } 602 | { "-aam" ,0,pAAm, | { } +gen.c:3813:37: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 3813 | if ( q->p1 != NULL ) TRANS(q->p1); + | ~^~~~ + | | + | Node * {aka struct _node *} +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ +../h/antlr.h:339:63: warning: 'a' is used uninitialized [-Wuninitialized] + 339 | {Attrib a; zzcr_attr((&a),_tok,_text); return a;} \ + | ^ +antlr.c:36:1: note: in expansion of macro 'ANTLR_INFO' + 36 | ANTLR_INFO + | ^~~~~~~~~~ +../h/antlr.h:339:25: note: 'a' declared here + 339 | {Attrib a; zzcr_attr((&a),_tok,_text); return a;} \ + | ^ +antlr.c:36:1: note: in expansion of macro 'ANTLR_INFO' + 36 | ANTLR_INFO + | ^~~~~~~~~~ main.c:604:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 604 | { "-aad" ,1,pAAd, | ^~~~ main.c:604:17: note: (near initialization for 'options[41].process.process_one_arg') +gen.c:3813:37: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 3813 | if ( q->p1 != NULL ) TRANS(q->p1); + | ~^~~~ +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ +gen.c:3814:37: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->p2)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 3814 | if ( q->p2 != NULL ) TRANS(q->p2); + | ~^~~~ + | | + | Node * {aka struct _node *} +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -3363,10 +3398,30 @@ 603 | "Lookahead token may appear multiple times in -aa listing"}, /* MR11 */ 604 | { "-aad" ,1,pAAd, | { } +gen.c:3814:37: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 3814 | if ( q->p2 != NULL ) TRANS(q->p2); + | ~^~~~ +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ main.c:606:21: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 606 | { "-info",1,pInfo, | ^~~~~ main.c:606:21: note: (near initialization for 'options[42].process.process_one_arg') +gen.c:3814:37: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->p2->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] + 3814 | if ( q->p2 != NULL ) TRANS(q->p2); + | ~^~~~ + | | + | Node * {aka struct _node *} +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ +gen.c:3814:37: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} + 3814 | if ( q->p2 != NULL ) TRANS(q->p2); + | ~^~~~ +syn.h:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -3465,6 +3520,13 @@ 608 | { "-treport",1,pTreport, | ^~~~~~~~ main.c:608:20: note: (near initialization for 'options[43].process.process_one_arg') +gen.c: In function 'genHdr': +gen.c:3903:29: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] + 3903 | if ( !GenCC ) _gen1("#define zzSET_SIZE %d\n", NumWords(TokenNum-1)*sizeof(unsigned)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +gen.c:152:50: note: in definition of macro '_gen1' + 152 | #define _gen1(s,a) {fprintf(output, s,a);} + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -3562,6 +3624,12 @@ 607 | "Extra info: p=pred t=tnodes f=first/follow m=monitor o=orphans 0=noop"}, /* MR11 */ 608 | { "-treport",1,pTreport, | { } +gen.c:3903:50: note: format string is defined here + 3903 | if ( !GenCC ) _gen1("#define zzSET_SIZE %d\n", NumWords(TokenNum-1)*sizeof(unsigned)); + | ~^ + | | + | int + | %ld main.c:610:25: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 610 | { "-newAST", 0, pNewAST, | ^~~~~~~ @@ -3670,21 +3738,13 @@ 612 | { "-tmake", 0, ptmakeInParser, | ^~~~~~~~~~~~~~ main.c:612:24: note: (near initialization for 'options[45].process.process_one_arg') -In file included from ../support/set/set.c:67: -../support/set/set.c: In function 'set_of': -../support/set/set.h:57:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 57 | if (((a).setword=(unsigned *)calloc(NumWords(_max),BytesPerWord))==NULL) \ - | ^~ -../support/set/set.c:266:9: note: in expansion of macro 'set_new' - 266 | set_new(a, b); - | ^~~~~~~ -../support/set/set.h:59:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 59 | (a).n = NumWords(_max); - | ^ -../support/set/set.c:266:9: note: in expansion of macro 'set_new' - 266 | set_new(a, b); - | ^~~~~~~ -../support/set/set.c: In function 'set_val': +gen.c: In function 'genStdPCCTSIncludeFile': +gen.c:4117:41: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] + 4117 | fprintf(f, "#define zzSET_SIZE %d\n", NumWords(TokenNum-1)*sizeof(unsigned)); + | ~^ + | | + | int + | %ld main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -3792,30 +3852,6 @@ 614 | { "-alpha",0, pAlpha, | ^~~~~~ main.c:614:19: note: (near initialization for 'options[46].process.process_one_arg') -../support/set/set.h:58:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] - 58 | fprintf(stderr, "set_new: Cannot allocate set with max of %d\n", _max); \ - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../support/set/set.c:557:9: note: in expansion of macro 'set_new' - 557 | set_new(a, strlen(s)); - | ^~~~~~~ -../support/set/set.h:58:68: note: format string is defined here - 58 | fprintf(stderr, "set_new: Cannot allocate set with max of %d\n", _max); \ - | ~^ - | | - | int - | %ld -../support/set/set.h:57:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 57 | if (((a).setword=(unsigned *)calloc(NumWords(_max),BytesPerWord))==NULL) \ - | ^~ -../support/set/set.c:557:9: note: in expansion of macro 'set_new' - 557 | set_new(a, strlen(s)); - | ^~~~~~~ -../support/set/set.h:59:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 59 | (a).n = NumWords(_max); - | ^ -../support/set/set.c:557:9: note: in expansion of macro 'set_new' - 557 | set_new(a, strlen(s)); - | ^~~~~~~ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -4495,6 +4531,7 @@ 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o mrhoist.o mrhoist.c +cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o fcache.o fcache.c In file included from mrhoist.c:33: mrhoist.c: In function 'MR_First': mrhoist.c:865:15: warning: passing argument 1 of 'fpReach[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] @@ -4511,7 +4548,6 @@ syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ -cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o fcache.o fcache.c antlr.c: In function 'tclass': antlr.c:1394:31: warning: 'p' may be used uninitialized [-Wmaybe-uninitialized] 1394 | /* MR23 */ if (p->akaString != NULL) { @@ -4557,6 +4593,8 @@ | ^ 128 | { "-CC", 0, (WildFunc)p_cpp, "Generate C++ output" }, | { } +In file included from ../support/set/set.c:67: +../support/set/set.c: In function 'set_of': main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] 127 | Opt options[] = { | ^ @@ -4584,6 +4622,12 @@ | { } 131 | { "-C2", 0, (WildFunc)p_comp2, "Compression level 2" }, | { } +../support/set/set.h:57:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 57 | if (((a).setword=(unsigned *)calloc(NumWords(_max),BytesPerWord))==NULL) \ + | ^~ +../support/set/set.c:266:9: note: in expansion of macro 'set_new' + 266 | set_new(a, b); + | ^~~~~~~ main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] 127 | Opt options[] = { | ^ @@ -4612,6 +4656,12 @@ | { } 133 | { "-Wambiguity", 0, (WildFunc)p_warn_ambig, "Warn if expressions ambiguous"}, | { } +../support/set/set.h:59:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 59 | (a).n = NumWords(_max); + | ^ +../support/set/set.c:266:9: note: in expansion of macro 'set_new' + 266 | set_new(a, b); + | ^~~~~~~ main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] 127 | Opt options[] = { | ^ @@ -4806,20 +4856,6 @@ | { } main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] -In file included from ../support/set/set.c:67: -../support/set/set.c: In function 'set_of': -../support/set/set.h:57:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 57 | if (((a).setword=(unsigned *)calloc(NumWords(_max),BytesPerWord))==NULL) \ - | ^~ -../support/set/set.c:266:9: note: in expansion of macro 'set_new' - 266 | set_new(a, b); - | ^~~~~~~ -../support/set/set.h:59:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 59 | (a).n = NumWords(_max); - | ^ -../support/set/set.c:266:9: note: in expansion of macro 'set_new' - 266 | set_new(a, b); - | ^~~~~~~ ../support/set/set.c: In function 'set_val': ../support/set/set.h:58:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 58 | fprintf(stderr, "set_new: Cannot allocate set with max of %d\n", _max); \ @@ -4845,14 +4881,6 @@ ../support/set/set.c:557:9: note: in expansion of macro 'set_new' 557 | set_new(a, strlen(s)); | ^~~~~~~ -In file included from err.c:23: -../h/err.h: In function 'zzFAIL': -../h/err.h:217:19: warning: 'f$' may be used uninitialized [-Wmaybe-uninitialized] - 217 | *miss_set = f[i-1]; - | ~~~~~~~~~~^~~~~~~~ -../h/err.h:168:22: note: 'f$' was declared here - 168 | SetWordType *f[1]; - | ^ output.c: In function 'p_class_hdr': output.c:125:23: warning: '%s' directive writing up to 199 bytes into a region of size 100 [-Wformat-overflow=] 125 | sprintf(buf, "%s_h", name); @@ -4889,6 +4917,14 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ +In file included from err.c:23: +../h/err.h: In function 'zzFAIL': +../h/err.h:217:19: warning: 'f$' may be used uninitialized [-Wmaybe-uninitialized] + 217 | *miss_set = f[i-1]; + | ~~~~~~~~~~^~~~~~~~ +../h/err.h:168:22: note: 'f$' was declared here + 168 | SetWordType *f[1]; + | ^ cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -o dlg dlg_p.o dlg_a.o main.o err.o set.o support.o output.o relabel.o automata.o mv dlg ../bin/. make[2]: Leaving directory '/build/reproducible-path/pccts-1.33MR33/dlg' @@ -4921,31 +4957,6 @@ ../support/set/set.c:266:9: note: in expansion of macro 'set_new' 266 | set_new(a, b); | ^~~~~~~ -../support/set/set.c: In function 'set_val': -../support/set/set.h:58:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] - 58 | fprintf(stderr, "set_new: Cannot allocate set with max of %d\n", _max); \ - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../support/set/set.c:557:9: note: in expansion of macro 'set_new' - 557 | set_new(a, strlen(s)); - | ^~~~~~~ -../support/set/set.h:58:68: note: format string is defined here - 58 | fprintf(stderr, "set_new: Cannot allocate set with max of %d\n", _max); \ - | ~^ - | | - | int - | %ld -../support/set/set.h:57:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 57 | if (((a).setword=(unsigned *)calloc(NumWords(_max),BytesPerWord))==NULL) \ - | ^~ -../support/set/set.c:557:9: note: in expansion of macro 'set_new' - 557 | set_new(a, strlen(s)); - | ^~~~~~~ -../support/set/set.h:59:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 59 | (a).n = NumWords(_max); - | ^ -../support/set/set.c:557:9: note: in expansion of macro 'set_new' - 557 | set_new(a, strlen(s)); - | ^~~~~~~ main.c:264:17: warning: missing braces around initializer [-Wmissing-braces] 264 | Opt options[] = { | ^ @@ -4955,7 +4966,14 @@ main.c:281:25: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 281 | { "-def-tokens", 0, pDToks,"Define ref'd tokens w/unique integer (C++ interface)"}, | ^~~~~~ +../support/set/set.c: In function 'set_val': main.c:281:25: note: (near initialization for 'options[1].process.process_one_arg') +../support/set/set.h:58:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] + 58 | fprintf(stderr, "set_new: Cannot allocate set with max of %d\n", _max); \ + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../support/set/set.c:557:9: note: in expansion of macro 'set_new' + 557 | set_new(a, strlen(s)); + | ^~~~~~~ main.c:264:17: warning: missing braces around initializer [-Wmissing-braces] 264 | Opt options[] = { | ^ @@ -4982,6 +5000,12 @@ 283 | { "-funcs", 1, pFuncs,"Gen 'ANSI', 'KR', or 'both' style function headers"}, | ^~~~~~ main.c:283:33: note: (near initialization for 'options[3].process.process_one_arg') +../support/set/set.h:58:68: note: format string is defined here + 58 | fprintf(stderr, "set_new: Cannot allocate set with max of %d\n", _max); \ + | ~^ + | | + | int + | %ld main.c:264:17: warning: missing braces around initializer [-Wmissing-braces] 264 | Opt options[] = { | ^ @@ -4994,6 +5018,18 @@ | { } 283 | { "-funcs", 1, pFuncs,"Gen 'ANSI', 'KR', or 'both' style function headers"}, | { } +../support/set/set.h:57:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 57 | if (((a).setword=(unsigned *)calloc(NumWords(_max),BytesPerWord))==NULL) \ + | ^~ +../support/set/set.c:557:9: note: in expansion of macro 'set_new' + 557 | set_new(a, strlen(s)); + | ^~~~~~~ +../support/set/set.h:59:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 59 | (a).n = NumWords(_max); + | ^ +../support/set/set.c:557:9: note: in expansion of macro 'set_new' + 557 | set_new(a, strlen(s)); + | ^~~~~~~ main.c:264:17: warning: missing braces around initializer [-Wmissing-braces] 264 | Opt options[] = { | ^ @@ -5271,12 +5307,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/3214194/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3214194/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/3507290 and its subdirectories -I: Current time: Thu Oct 1 05:18:51 -12 2026 -I: pbuilder-time-stamp: 1790875131 +I: removing directory /srv/workspace/pbuilder/3214194 and its subdirectories +I: Current time: Sat Aug 30 00:56:39 +14 2025 +I: pbuilder-time-stamp: 1756464999