Diff of the two buildlogs: -- --- b1/build.log 2025-10-21 05:22:12.042706662 +0000 +++ b2/build.log 2025-10-21 05:23:33.142798311 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Oct 20 17:20:21 -12 2025 -I: pbuilder-time-stamp: 1761024021 +I: Current time: Tue Nov 24 01:45:13 +14 2026 +I: pbuilder-time-stamp: 1795434313 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/forky-reproducible-base.tgz] I: copying local configuration @@ -28,53 +28,85 @@ dpkg-source: info: applying copt.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/2514313/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3979298/tmp/hooks/D01_modify_environment starting +debug: Running on ionos5-amd64. +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 Nov 23 11:45 /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/3979298/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3979298/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='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=40 ' - DISTRIBUTION='forky' - HOME='/root' - HOST_ARCH='amd64' + 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]="3" [2]="3" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.3.3(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' + DIRSTACK=() + DISTRIBUTION=forky + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='57279d74109b4ff397713aa8142f4311' - 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='2514313' - PS1='# ' - PS2='> ' + INVOCATION_ID=5515b06c0c8d476093ef2b54578b3d35 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-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=3979298 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.4SvySSR4/pbuilderrc_JtNz --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.4SvySSR4/b1 --logfile b1/build.log pccts_1.33MR33-6.6.dsc' - SUDO_GID='111' - SUDO_HOME='/var/lib/jenkins' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://46.16.76.132: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.4SvySSR4/pbuilderrc_3QdA --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.4SvySSR4/b2 --logfile b2/build.log pccts_1.33MR33-6.6.dsc' + SUDO_GID=110 + SUDO_HOME=/var/lib/jenkins + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://213.165.73.152:3128 I: uname -a - Linux ionos11-amd64 6.12.48+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.48-1 (2025-09-20) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.12.48+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.48-1 (2025-09-20) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 10 12:30 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/2514313/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 10 2025 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3979298/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -139,7 +171,7 @@ Get: 27 http://deb.debian.org/debian forky/main amd64 intltool-debian all 0.35.0+20060710.6 [22.9 kB] Get: 28 http://deb.debian.org/debian forky/main amd64 po-debconf all 1.0.21+nmu1 [248 kB] Get: 29 http://deb.debian.org/debian forky/main amd64 debhelper all 13.28 [941 kB] -Fetched 11.2 MB in 0s (30.3 MB/s) +Fetched 11.2 MB in 2s (6045 kB/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 ... 19898 files and directories currently installed.) @@ -275,7 +307,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.6_source.changes +I: user script /srv/workspace/pbuilder/3979298/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for forky +I: user script /srv/workspace/pbuilder/3979298/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.6_source.changes dpkg-buildpackage: info: source package pccts dpkg-buildpackage: info: source version 1.33MR33-6.6 dpkg-buildpackage: info: source distribution unstable @@ -285,7 +321,7 @@ debian/rules clean dh clean dh_auto_clean - make -j40 clean + make -j42 clean make[1]: Entering directory '/build/reproducible-path/pccts-1.33MR33' (cd ./antlr; make -s clean) (cd ./dlg; make -s clean) @@ -300,7 +336,7 @@ dh_autoreconf dh_auto_configure dh_auto_build - make -j40 INSTALL="install --strip-program=true" + make -j42 INSTALL="install --strip-program=true" make[1]: Entering directory '/build/reproducible-path/pccts-1.33MR33' Welcome to PCCTS 1.33MR33 installation @@ -345,74 +381,59 @@ cc -O2 -Wall -Wno-unused -g -std=gnu17 -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 egman.o egman.c cc -O2 -Wall -Wno-unused -g -std=gnu17 -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 -std=gnu17 -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 fset.c:39: -fset.c: In function 'rRuleRef': -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); - | ^ - | | - | Junction * {aka struct _junct *} -syn.h:173:73: note: in definition of macro 'REACH' - 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} - | ^ -fset.c:347:15: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} - 347 | REACH(r, k, &rk, a); - | ^ -syn.h:173:73: note: in definition of macro 'REACH' - 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} - | ^ -fset.c: In function 'rAction': -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); - | ~^~~~~~~~~~~~ - | | - | struct _junct * -syn.h:173:73: note: in definition of macro 'REACH' - 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} - | ^ -fset.c:448:26: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'struct _junct *' - 448 | /* MR11 */ REACH(p->guardNodes,k,rk,a); - | ~^~~~~~~~~~~~ -syn.h:173:73: note: in definition of macro 'REACH' - 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} - | ^ -fset.c: In function 'First': -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]); - | ^ - | | - | Junction * {aka struct _junct *} -syn.h:173:73: note: in definition of macro 'REACH' - 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} - | ^ -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 );} - | ^ -fset.c:1529:21: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 1529 | if (AlphaBetaTrace) MR_MaintainBackTrace=0; - | ^~ -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); - | ^~~~~~~~~~~~~~~ -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 );} - | ^ +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); \ + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../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)); + | ^~~~~~~ +gen.c:54:9: warning: initialization of 'void (*)()' from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] + 54 | (void (*)(...)) genRuleRef, + | ^ +gen.c:54:9: note: (near initialization for 'C_Trans[2]') +gen.c:55:9: warning: initialization of 'void (*)()' from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] + 55 | (void (*)(...)) genToken, + | ^ +gen.c:55:9: note: (near initialization for 'C_Trans[3]') +gen.c:56:9: warning: initialization of 'void (*)()' from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] + 56 | (void (*)(...)) genAction + | ^ +gen.c:56:9: note: (near initialization for 'C_Trans[4]') In file included from bits.c:36: bits.c: In function 'Efirst': -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 );} - | ^ bits.c:224:15: warning: passing argument 1 of 'fpReach[r->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 224 | REACH(r, 1, &rk, a); | ^ @@ -421,26 +442,60 @@ syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ -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 );} - | ^ -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 );} - | ^ bits.c:224:15: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} 224 | REACH(r, 1, &rk, a); | ^ syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ +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, + | ^ +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, + | ^ +globals.c:196:9: note: (near initialization for 'fpTraverse[2]') +globals.c:197: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] + 197 | (struct _tree *(*)(...)) tToken, + | ^ +globals.c:197:9: note: (near initialization for 'fpTraverse[3]') +globals.c:198: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] + 198 | (struct _tree *(*)(...)) tAction + | ^ +globals.c:198:9: note: (near initialization for 'fpTraverse[4]') +globals.c:207:9: warning: initialization of 'struct _set (*)(Node *, int, set *)' {aka 'struct _set (*)(struct _node *, int, struct _set *)'} from incompatible pointer type 'struct _set (*)()' [-Wincompatible-pointer-types] + 207 | (struct _set (*)(...)) rJunc, + | ^ +globals.c:207:9: note: (near initialization for 'fpReach[1]') +globals.c:208:9: warning: initialization of 'struct _set (*)(Node *, int, set *)' {aka 'struct _set (*)(struct _node *, int, struct _set *)'} from incompatible pointer type 'struct _set (*)()' [-Wincompatible-pointer-types] + 208 | (struct _set (*)(...)) rRuleRef, + | ^ +globals.c:208:9: note: (near initialization for 'fpReach[2]') +globals.c:209:9: warning: initialization of 'struct _set (*)(Node *, int, set *)' {aka 'struct _set (*)(struct _node *, int, struct _set *)'} from incompatible pointer type 'struct _set (*)()' [-Wincompatible-pointer-types] + 209 | (struct _set (*)(...)) rToken, + | ^ +globals.c:209:9: note: (near initialization for 'fpReach[3]') +globals.c:210:9: warning: initialization of 'struct _set (*)(Node *, int, set *)' {aka 'struct _set (*)(struct _node *, int, struct _set *)'} from incompatible pointer type 'struct _set (*)()' [-Wincompatible-pointer-types] + 210 | (struct _set (*)(...)) rAction + | ^ +globals.c:210:9: note: (near initialization for 'fpReach[4]') +globals.c:216:9: warning: initialization of 'void (*)(Node *)' {aka 'void (*)(struct _node *)'} from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] + 216 | (void (*)(...)) pJunc, + | ^ +globals.c:216:9: note: (near initialization for 'fpPrint[1]') +globals.c:217:9: warning: initialization of 'void (*)(Node *)' {aka 'void (*)(struct _node *)'} from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] + 217 | (void (*)(...)) pRuleRef, + | ^ +globals.c:217:9: note: (near initialization for 'fpPrint[2]') +globals.c:218:9: warning: initialization of 'void (*)(Node *)' {aka 'void (*)(struct _node *)'} from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] + 218 | (void (*)(...)) pToken, + | ^ +globals.c:218:9: note: (near initialization for 'fpPrint[3]') +globals.c:219:9: warning: initialization of 'void (*)(Node *)' {aka 'void (*)(struct _node *)'} from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] + 219 | (void (*)(...)) pAction + | ^ +globals.c:219:9: note: (near initialization for 'fpPrint[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] = {", @@ -493,248 +548,100 @@ | | | int | %ld -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 );} - | ^ -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 );} - | ^ -fset2.c: In function 'tAction': -gen.c:54:9: warning: initialization of 'void (*)()' from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] - 54 | (void (*)(...)) genRuleRef, - | ^ -gen.c:54:9: note: (near initialization for 'C_Trans[2]') -gen.c:55:9: warning: initialization of 'void (*)()' from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] - 55 | (void (*)(...)) genToken, - | ^ -gen.c:55:9: note: (near initialization for 'C_Trans[3]') -gen.c:56:9: warning: initialization of 'void (*)()' from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] - 56 | (void (*)(...)) genAction - | ^ -gen.c:56:9: note: (near initialization for 'C_Trans[4]') -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 - | ^~~~~~~~~~ -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); - | ~^~~~~~~~~~~~ +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 );} + | ^ +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 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] + 865 | REACH(p,ck,incomplete,tokensUsed); + | ^ | | - | 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 );} - | ^ -fset2.c: In function 'VerifyAmbig': -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 );} - | ^ -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 );} - | ^ + | Junction * {aka struct _junct *} +syn.h:173:73: note: in definition of macro 'REACH' + 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} + | ^ 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 '*(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 );\ + | ^ +mrhoist.c:865:15: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} + 865 | REACH(p,ck,incomplete,tokensUsed); + | ^ +syn.h:173:73: note: in definition of macro 'REACH' + 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} + | ^ main.c:331:13: note: 'pCC' declared here 331 | static void pCC(void) { GenCC = TRUE; } | ^~~ +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 );\ + | ^ 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: 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: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)"}, | ^~~ +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: note: (near initialization for 'options[1].process.process_one_arg') main.c:296:13: note: 'pCr' declared here 296 | static void pCr(void) { GenCR = TRUE; } | ^~~ -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, - | ^ -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, - | ^ -globals.c:196:9: note: (near initialization for 'fpTraverse[2]') -fset2.c: In function 'computePredFromContextGuard': -globals.c:197: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] - 197 | (struct _tree *(*)(...)) tToken, - | ^ -globals.c:197:9: note: (near initialization for 'fpTraverse[3]') -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 );} - | ^ -globals.c:198: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] - 198 | (struct _tree *(*)(...)) tAction - | ^ -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 );} - | ^ -globals.c:198:9: note: (near initialization for 'fpTraverse[4]') -globals.c:207:9: warning: initialization of 'struct _set (*)(Node *, int, set *)' {aka 'struct _set (*)(struct _node *, int, struct _set *)'} from incompatible pointer type 'struct _set (*)()' [-Wincompatible-pointer-types] - 207 | (struct _set (*)(...)) rJunc, - | ^ -globals.c:207:9: note: (near initialization for 'fpReach[1]') -globals.c:208:9: warning: initialization of 'struct _set (*)(Node *, int, set *)' {aka 'struct _set (*)(struct _node *, int, struct _set *)'} from incompatible pointer type 'struct _set (*)()' [-Wincompatible-pointer-types] - 208 | (struct _set (*)(...)) rRuleRef, - | ^ -globals.c:208:9: note: (near initialization for 'fpReach[2]') -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 );} - | ^ -globals.c:209:9: warning: initialization of 'struct _set (*)(Node *, int, set *)' {aka 'struct _set (*)(struct _node *, int, struct _set *)'} from incompatible pointer type 'struct _set (*)()' [-Wincompatible-pointer-types] - 209 | (struct _set (*)(...)) rToken, - | ^ -globals.c:209:9: note: (near initialization for 'fpReach[3]') -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 );} - | ^ -globals.c:210:9: warning: initialization of 'struct _set (*)(Node *, int, set *)' {aka 'struct _set (*)(struct _node *, int, struct _set *)'} from incompatible pointer type 'struct _set (*)()' [-Wincompatible-pointer-types] - 210 | (struct _set (*)(...)) rAction - | ^ -globals.c:210:9: note: (near initialization for 'fpReach[4]') -globals.c:216:9: warning: initialization of 'void (*)(Node *)' {aka 'void (*)(struct _node *)'} from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] - 216 | (void (*)(...)) pJunc, - | ^ -globals.c:216:9: note: (near initialization for 'fpPrint[1]') -globals.c:217:9: warning: initialization of 'void (*)(Node *)' {aka 'void (*)(struct _node *)'} from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] - 217 | (void (*)(...)) pRuleRef, - | ^ -globals.c:217:9: note: (near initialization for 'fpPrint[2]') -globals.c:218:9: warning: initialization of 'void (*)(Node *)' {aka 'void (*)(struct _node *)'} from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] - 218 | (void (*)(...)) pToken, - | ^ -globals.c:218:9: note: (near initialization for 'fpPrint[3]') -globals.c:219:9: warning: initialization of 'void (*)(Node *)' {aka 'void (*)(struct _node *)'} from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] - 219 | (void (*)(...)) pAction - | ^ -globals.c:219:9: note: (near initialization for 'fpPrint[4]') -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 );} - | ^ -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 );} - | ^ -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 );} - | ^ -fset2.c: In function 'MR_traceAmbSource': -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 );} - | ^ -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[] = { | ^ @@ -975,8 +882,6 @@ main.c:301:13: note: 'pFr' declared here 301 | static void pFr(char *s, char *t) {RemapFileName = t;} | ^~~ -In file included from pred.c:34: -pred.c: In function 'find_predicates': main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -1009,23 +914,9 @@ 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | ^~~ main.c:572:17: note: (near initialization for 'options[12].process.process_one_arg') -pred.c:416:54: warning: passing argument 1 of 'fpTraverse[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] - 416 | /* MR11 */ TRAV(p, - | ^ - | | - | ActionNode * {aka struct _anode *} -syn.h:179:81: note: in definition of macro 'TRAV' - 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} - | ^ main.c:305:13: note: 'pFt' declared here 305 | static void pFt(char *s, char *t) {DefFileName = t;} | ^~~ -pred.c:416:54: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'ActionNode *' {aka 'struct _anode *'} - 416 | /* MR11 */ TRAV(p, - | ^ -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[] = { | ^ @@ -1060,23 +951,18 @@ 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: In function 'genAction': main.c:295:13: note: 'pANSI' declared here 295 | static void pANSI(void) { GenANSI = TRUE; } | ^~~~~ -pred.c:446:63: warning: passing argument 1 of 'fpReach[((Junction *)p->next)->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] - 446 | REACH((Junction *)p->next, - | ^~~~~~~~~~~~~~~~~~~ - | | - | Junction * {aka struct _junct *} -syn.h:173:73: note: in definition of macro 'REACH' - 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} - | ^ -pred.c:446:63: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} - 446 | REACH((Junction *)p->next, - | ^~~~~~~~~~~~~~~~~~~ -syn.h:173:73: note: in definition of macro 'REACH' - 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} - | ^ +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 );\ + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -1109,6 +995,12 @@ | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } +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 );\ + | ^ main.c:574:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | ^~~~~ @@ -1116,6 +1008,20 @@ main.c:287:13: note: 'pCGen' declared here 287 | static void pCGen(void) { CodeGen = FALSE; LexGen = FALSE; } | ^~~~~ +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 );} + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -1157,77 +1063,6 @@ main.c:290:13: note: 'pTGen' declared here 290 | static void pTGen(void) { TraceGen = TRUE; } | ^~~~~ -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); \ - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../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 -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 );} - | ^ -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 );} - | ^ -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 );\ - | ^ -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 );\ - | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -1687,77 +1522,6 @@ main.c:288:13: note: 'pLGen' declared here 288 | static void pLGen(void) { LexGen = FALSE; } | ^~~~~ -../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)); - | ^~~~~~~ -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] - 865 | REACH(p,ck,incomplete,tokensUsed); - | ^ - | | - | Junction * {aka struct _junct *} -syn.h:173:73: note: in definition of macro 'REACH' - 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} - | ^ -mrhoist.c:865:15: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} - 865 | REACH(p,ck,incomplete,tokensUsed); - | ^ -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 '*(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) - | ~^~~~~~ -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 );} - | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -1819,6 +1583,7 @@ main.c:289:13: note: 'pXTGen' declared here 289 | static void pXTGen(void){ MR_Inhibit_Tokens_h_Gen = TRUE; } | ^~~~~~ +gen.c: In function 'genRuleRef': main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -1879,9 +1644,37 @@ 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: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 );\ + | ^ main.c:172:1: note: 'pLLK' declared here 172 | pLLK( char *s, char *t ) | ^~~~ +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) + | ~^~~~~~ +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[] = { | ^ @@ -2154,35 +1947,6 @@ main.c:407:1: note: 'pPred' declared here 407 | pPred( void ) | ^~~~~ -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 *} -syn.h:166:113: note: in definition of macro 'TRANS' - 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( 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: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) - | ~^~~~~~ -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[] = { | ^ @@ -2568,6 +2332,7 @@ main.c:324:13: note: 'pW1' declared here 324 | static void pW1(void) { WarningLevel = 1; } | ^~~ +gen.c: In function 'genToken': main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -2644,14 +2409,6 @@ | { } 595 | { "-w1", 0, pW1, "Set the warning level to 1 (default)"}, | { } -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') -main.c:330:13: note: 'pW2' declared here - 330 | static void pW2(void) { WarningLevel = 2; } - | ^~~ -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 */ | ~^~~~~~ @@ -2660,12 +2417,19 @@ 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: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:330:13: note: 'pW2' declared here + 330 | static void pW2(void) { WarningLevel = 2; } + | ^~~ 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 */ | ~^~~~~~ @@ -2674,6 +2438,26 @@ 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:167:72: note: in definition of macro 'TRANS' + 167 | else (*(fpTrans[(p)->ntype]))( p );} + | ^ +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 );\ + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -2752,8 +2536,16 @@ | { } 596 | { "-w2", 0, pW2, "Ambiguities yield warnings even if predicates or (...)? block"}, | { } -gen.c:2663:33: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 2663 | TRANS( a->next ); /* MR30 */ +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 );} @@ -2765,34 +2557,20 @@ main.c:441:1: note: 'pMRhoist' declared here 441 | pMRhoist( char *s, char *t ) | ^~~~~~~~ -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 *} +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 );\ | ^ -gen.c:2666:33: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} - 2666 | TRANS( p->next ); /* MR30 */ - | ~^~~~~~ +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: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 );} - | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -2880,20 +2658,6 @@ main.c:461:1: note: 'pMRhoistk' declared here 461 | pMRhoistk( char *s, char *t ) | ^~~~~~~~~ -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 );\ - | ^ -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); | ~^~~~~~ @@ -3113,79 +2877,6 @@ 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 );\ - | ^ -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 );} - | ^ -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: 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 );} - | ^ -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 );} - | ^ -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: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:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -3281,6 +2972,7 @@ main.c:222:1: note: 'pAAd' declared here 222 | pAAd( char *s, char *t ) /* MR11 */ | ^~~~ +gen.c: In function 'genLoopBlk': main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -3372,13 +3064,41 @@ 603 | "Lookahead token may appear multiple times in -aa listing"}, /* MR11 */ 604 | { "-aad" ,1,pAAd, | { } +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:606:21: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 606 | { "-info",1,pInfo, | ^~~~~ +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:606:21: note: (near initialization for 'options[42].process.process_one_arg') +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:257:13: note: 'pInfo' declared here 257 | static void pInfo(char *s, char *t) /* MR10 */ | ^~~~~ +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 );} + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -3480,6 +3200,15 @@ main.c:235:1: note: 'pTreport' declared here 235 | pTreport( char *s, char *t ) /* MR11 */ | ^~~~~~~~ +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 );\ + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -3577,6 +3306,12 @@ 607 | "Extra info: p=pred t=tnodes f=first/follow m=monitor o=orphans 0=noop"}, /* MR11 */ 608 | { "-treport",1,pTreport, | { } +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:610:25: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 610 | { "-newAST", 0, pNewAST, | ^~~~~~~ @@ -3584,101 +3319,16 @@ main.c:325:13: note: 'pNewAST' declared here 325 | static void pNewAST(void) { NewAST = 1; } /* MR13 */ | ^~~~~~~ -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 );} - | ^ -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 );} - | ^ -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 );} - | ^ -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: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 );\ - | ^ -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 );} - | ^ -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 );\ - | ^ -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); +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: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: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 );} @@ -3783,13 +3433,42 @@ 609 | "Report when tnode usage exceeds value during ambiguity resolution"}, /* MR11 */ 610 | { "-newAST", 0, pNewAST, | { } +gen.c: In function 'genPlusBlk': main.c:612:24: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 612 | { "-tmake", 0, ptmakeInParser, | ^~~~~~~~~~~~~~ main.c:612:24: note: (near initialization for 'options[45].process.process_one_arg') +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:326:13: note: 'ptmakeInParser' declared here 326 | static void ptmakeInParser(void) { tmakeInParser = 1; } /* MR23 */ | ^~~~~~~~~~~~~~ +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 );\ + | ^ +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 );} + | ^ +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 );} + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -3893,13 +3572,41 @@ 611 | "In C++ mode use \"newAST(...)\" rather than \"new AST(...)\""}, /* MR13 */ 612 | { "-tmake", 0, ptmakeInParser, | { } +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 );\ + | ^ main.c:614:19: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 614 | { "-alpha",0, pAlpha, | ^~~~~~ main.c:614:19: note: (near initialization for 'options[46].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:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ main.c:327:13: note: 'pAlpha' declared here 327 | static void pAlpha(void) { AlphaBetaTrace = 1; } /* MR14 */ | ^~~~~~ +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[] = { | ^ @@ -4010,44 +3717,34 @@ 616 | { "-mrblkerr",0,pMR_BlkErr, /* MR21 */ | ^~~~~~~~~~ main.c:616:21: note: (near initialization for 'options[47].process.process_one_arg') -main.c:328:13: note: 'pMR_BlkErr' declared here - 328 | static void pMR_BlkErr(void) { MR_BlkErr = 1; } /* MR21 */ - | ^~~~~~~~~~ -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 );} - | ^ -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': -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 *} +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 );\ | ^ -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); - | ~^~~~ +main.c:328:13: note: 'pMR_BlkErr' declared here + 328 | static void pMR_BlkErr(void) { MR_BlkErr = 1; } /* MR21 */ + | ^~~~~~~~~~ +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: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 *} +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 );} | ^ @@ -4160,12 +3857,7 @@ 615 | "Provide additional information for \"(alpha)? beta\" error messages"}, /* MR14 */ 616 | { "-mrblkerr",0,pMR_BlkErr, /* MR21 */ | { } -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: In function 'genSubBlk': main.c:618:25: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 618 | { "-nopurify",0,pNOPURIFY, | ^~~~~~~~~ @@ -4173,34 +3865,50 @@ main.c:297:13: note: 'pNOPURIFY' declared here 297 | static void pNOPURIFY(void) { PURIFY = FALSE; } | ^~~~~~~~~ -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 *} +In file included from pred.c:34: +pred.c: In function 'find_predicates': +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: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: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: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 *} +pred.c:416:54: warning: passing argument 1 of 'fpTraverse[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] + 416 | /* MR11 */ TRAV(p, + | ^ + | | + | ActionNode * {aka struct _anode *} +syn.h:179:81: note: in definition of macro 'TRAV' + 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} + | ^ +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: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: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 );} | ^ +pred.c:416:54: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'ActionNode *' {aka 'struct _anode *'} + 416 | /* MR11 */ TRAV(p, + | ^ +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[] = { | ^ @@ -4313,26 +4021,30 @@ 617 | "EXPERIMENTAL change to (...)* and (...)+ syntax error sets"}, /* MR21 */ 618 | { "-nopurify",0,pNOPURIFY, | { } +pred.c:446:63: warning: passing argument 1 of 'fpReach[((Junction *)p->next)->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] + 446 | REACH((Junction *)p->next, + | ^~~~~~~~~~~~~~~~~~~ + | | + | Junction * {aka struct _junct *} +syn.h:173:73: note: in definition of macro 'REACH' + 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} + | ^ main.c:620:21: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 620 | { "-", 0, pStdin, "Read grammar from stdin" }, | ^~~~~~ main.c:620:21: note: (near initialization for 'options[49].process.process_one_arg') +pred.c:446:63: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} + 446 | REACH((Junction *)p->next, + | ^~~~~~~~~~~~~~~~~~~ +syn.h:173:73: note: in definition of macro 'REACH' + 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} + | ^ main.c:82:1: note: 'pStdin' declared here 82 | pStdin( void ) | ^~~~~~ -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 +gen.c: In function 'genRule': +In file included from fset2.c:44: +fset2.c: In function 'tRuleRef': main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -4448,13 +4160,34 @@ 619 | "Don't use the notorious PURIFY macro (replaced by MR23 initial value syntax) to zero return arguments of rules"}, /* MR23 */ 620 | { "-", 0, pStdin, "Read grammar from stdin" }, | { } -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: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 );} + | ^ +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 );} + | ^ +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 );} + | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ @@ -4574,9 +4307,53 @@ | { } main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] +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 );\ + | ^ +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 );} + | ^ +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 );} + | ^ In file included from stdpccts.h:22, from main.c:37: main.c: In function 'main': +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 );} + | ^ main.c:820:31: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)SynDiag->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] 820 | TRANS(SynDiag); /* Translate to the target language */ | ^~~~~~~ @@ -4585,12 +4362,26 @@ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( 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:820:31: note: expected 'long unsigned int' but argument is of type 'Junction *' {aka 'struct _junct *'} 820 | TRANS(SynDiag); /* Translate to the target language */ | ^~~~~~~ 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); + | ~^~~~ +syn.h:166:113: note: in definition of macro 'TRANS' + 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ + | ^ main.c:820:31: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)SynDiag->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] 820 | TRANS(SynDiag); /* Translate to the target language */ | ^~~~~~~ @@ -4605,6 +4396,20 @@ 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 '*(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:854:31: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)SynDiag->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] 854 | TRANS(SynDiag); /* Translate to the target language */ | ^~~~~~~ @@ -4633,6 +4438,7 @@ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ +gen.c: In function 'genHdr': main.c:885:28: warning: passing argument 1 of 'fpPrint[SynDiag->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 885 | else PRINT(SynDiag); | ^~~~~~~ @@ -4647,6 +4453,241 @@ syn.h:170:67: note: in definition of macro 'PRINT' 170 | (*(fpPrint[(p)->ntype]))( p );} | ^ +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 +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 +fset2.c: In function 'VerifyAmbig': +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 );} + | ^ +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 );} + | ^ +fset2.c: In function 'computePredFromContextGuard': +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 );} + | ^ +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 );} + | ^ +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 );} + | ^ +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 );} + | ^ +fset2.c: In function 'MR_traceAmbSource': +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 );} + | ^ +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 );} + | ^ +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 +In file included from fset.c:39: +fset.c: In function 'rRuleRef': +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); + | ^ + | | + | Junction * {aka struct _junct *} +syn.h:173:73: note: in definition of macro 'REACH' + 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} + | ^ +fset.c:347:15: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} + 347 | REACH(r, k, &rk, a); + | ^ +syn.h:173:73: note: in definition of macro 'REACH' + 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} + | ^ +fset.c: In function 'rAction': +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); + | ~^~~~~~~~~~~~ + | | + | struct _junct * +syn.h:173:73: note: in definition of macro 'REACH' + 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} + | ^ +fset.c:448:26: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'struct _junct *' + 448 | /* MR11 */ REACH(p->guardNodes,k,rk,a); + | ~^~~~~~~~~~~~ +syn.h:173:73: note: in definition of macro 'REACH' + 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} + | ^ +fset.c: In function 'First': +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]); + | ^ + | | + | Junction * {aka struct _junct *} +syn.h:173:73: note: in definition of macro 'REACH' + 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} + | ^ +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 );} + | ^ +fset.c:1529:21: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 1529 | if (AlphaBetaTrace) MR_MaintainBackTrace=0; + | ^~ +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); + | ^~~~~~~~~~~~~~~ +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 );} + | ^ +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 );} + | ^ +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 );} + | ^ +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 );} + | ^ +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 + | ^~~~~~~~~~ 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] @@ -4655,11 +4696,6 @@ ../h/err.h:168:22: note: 'f$' was declared here 168 | SetWordType *f[1]; | ^ -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 antlr.c: In function 'tclass': antlr.c:1394:31: warning: 'p' may be used uninitialized [-Wmaybe-uninitialized] 1394 | /* MR23 */ if (p->akaString != NULL) { @@ -4721,24 +4757,6 @@ ../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:127:17: warning: missing braces around initializer [-Wmissing-braces] 127 | Opt options[] = { | ^ @@ -4760,6 +4778,12 @@ | { } 130 | { "-C1", 0, (WildFunc)p_comp1, "Compression level 1" }, | { } +../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:127:17: warning: missing braces around initializer [-Wmissing-braces] 127 | Opt options[] = { | ^ @@ -4771,6 +4795,18 @@ | { } 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: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:127:17: warning: missing braces around initializer [-Wmissing-braces] 127 | Opt options[] = { | ^ @@ -4993,14 +5029,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 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); @@ -5037,6 +5065,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 -std=gnu17 -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' @@ -5055,13 +5091,6 @@ cc -O2 -Wall -Wno-unused -g -std=gnu17 -Ih -I. -I../h -I../support/set -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o hash.o hash.c cc -O2 -Wall -Wno-unused -g -std=gnu17 -Ih -I. -I../h -I../support/set -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o look.o look.c cc -O2 -Wall -Wno-unused -g -std=gnu17 -Ih -I. -I../h -I../support/set -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o cpp.o cpp.c -hash.c: In function 'hashStat': -hash.c:144:53: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] - 144 | if ( q != NULL ) fprintf(stderr, "[%d]", p-table); - | ~^ ~~~~~~~ - | | | - | int long int - | %ld 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] @@ -5101,6 +5130,13 @@ ../support/set/set.c:557:9: note: in expansion of macro 'set_new' 557 | set_new(a, strlen(s)); | ^~~~~~~ +hash.c: In function 'hashStat': +hash.c:144:53: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] + 144 | if ( q != NULL ) fprintf(stderr, "[%d]", p-table); + | ~^ ~~~~~~~ + | | | + | int long int + | %ld main.c:264:17: warning: missing braces around initializer [-Wmissing-braces] 264 | Opt options[] = { | ^ @@ -5428,8 +5464,8 @@ dh_gencontrol dh_md5sums dh_builddeb -dpkg-deb: building package 'pccts-dbgsym' in '../pccts-dbgsym_1.33MR33-6.6_amd64.deb'. dpkg-deb: building package 'pccts' in '../pccts_1.33MR33-6.6_amd64.deb'. +dpkg-deb: building package 'pccts-dbgsym' in '../pccts-dbgsym_1.33MR33-6.6_amd64.deb'. dpkg-genbuildinfo --build=binary -O../pccts_1.33MR33-6.6_amd64.buildinfo dpkg-genchanges --build=binary -O../pccts_1.33MR33-6.6_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -5437,12 +5473,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/3979298/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3979298/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/2514313 and its subdirectories -I: Current time: Mon Oct 20 17:22:10 -12 2025 -I: pbuilder-time-stamp: 1761024130 +I: removing directory /srv/workspace/pbuilder/3979298 and its subdirectories +I: Current time: Tue Nov 24 01:46:32 +14 2026 +I: pbuilder-time-stamp: 1795434392