=> Bootstrap dependency digest>=20010302: found digest-20190127 WARNING: [license.mk] Every package should define a LICENSE. ===> Skipping vulnerability checks. WARNING: No /var/db/pkg/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'. ===> Building for fastcap-2.0.19920918nb2 cd src ; /usr/bin/make fastcap clang -O2 -DFOUR -c ./mulGlobal.c clang -O2 -DFOUR -c ./mulSetup.c ./mulSetup.c:61:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(sys, 1, ssystem, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:61:3: warning: cast to 'ssystem *' (aka 'struct ssystem *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(sys, 1, ssystem, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:61:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(sys, 1, ssystem, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:61:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:61:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(sys, 1, ssystem, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:67:3: warning: implicit declaration of function 'getrelations' is invalid in C99 [-Wimplicit-function-declaration] getrelations(sys); /* Get all the prnts and kids for each cube. */ ^ ./mulSetup.c:69:3: warning: implicit declaration of function 'setPosition' is invalid in C99 [-Wimplicit-function-declaration] setPosition(sys); /* Figures out position of cube center. */ ^ ./mulSetup.c:74:3: warning: implicit declaration of function 'setExact' is invalid in C99 [-Wimplicit-function-declaration] setExact(sys, multerms(sys->order)); /* Note cubes to be done exactly and ^ ./mulSetup.c:74:17: warning: implicit declaration of function 'multerms' is invalid in C99 [-Wimplicit-function-declaration] setExact(sys, multerms(sys->order)); /* Note cubes to be done exactly and ^ ./mulSetup.c:169:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(sys->q, totalq+1, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:169:3: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(sys->q, totalq+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:169:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(sys->q, totalq+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:169:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:169:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(sys->q, totalq+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:170:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(sys->p, totalq+1, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:170:3: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(sys->p, totalq+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:170:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(sys->p, totalq+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:170:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:170:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(sys->p, totalq+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:173:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(sys->is_dummy, totalq+1, int, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:173:3: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(sys->is_dummy, totalq+1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:173:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(sys->is_dummy, totalq+1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:173:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:173:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(sys->is_dummy, totalq+1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:176:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(sys->is_dielec, totalq+1, int, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:176:3: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(sys->is_dielec, totalq+1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:176:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(sys->is_dielec, totalq+1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:176:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:176:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(sys->is_dielec, totalq+1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:180:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cubes, MAXDEP+1, cube****, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:180:5: warning: cast to 'cube *****' (aka 'struct cube *****') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cubes, MAXDEP+1, cube****, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:180:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cubes, MAXDEP+1, cube****, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:180:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:180:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cubes, MAXDEP+1, cube****, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:184:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cubes[i], side, cube***, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:184:7: warning: cast to 'cube ****' (aka 'struct cube ****') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cubes[i], side, cube***, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:184:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cubes[i], side, cube***, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:184:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:184:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cubes[i], side, cube***, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:186:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cubes[i][j], side, cube**, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:186:2: warning: cast to 'cube ***' (aka 'struct cube ***') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cubes[i][j], side, cube**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:186:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cubes[i][j], side, cube**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:186:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:186:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cubes[i][j], side, cube**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:188:4: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cubes[i][j][k], side, cube*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:188:4: warning: cast to 'cube **' (aka 'struct cube **') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cubes[i][j][k], side, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:188:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cubes[i][j][k], side, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:188:4: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:188:4: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cubes[i][j][k], side, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:207:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cubes[i], side, cube***, OFF, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:207:7: warning: cast to 'cube ****' (aka 'struct cube ****') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cubes[i], side, cube***, OFF, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:207:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cubes[i], side, cube***, OFF, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:207:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:207:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cubes[i], side, cube***, OFF, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:213:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cubes[i][j], side, cube**, OFF, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:213:2: warning: cast to 'cube ***' (aka 'struct cube ***') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cubes[i][j], side, cube**, OFF, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:213:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cubes[i][j], side, cube**, OFF, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:213:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:213:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cubes[i][j], side, cube**, OFF, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:219:4: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cubes[i][j][k], side, cube*, OFF, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:219:4: warning: cast to 'cube **' (aka 'struct cube **') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cubes[i][j][k], side, cube*, OFF, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:219:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cubes[i][j][k], side, cube*, OFF, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:219:4: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:219:4: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cubes[i][j][k], side, cube*, OFF, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:234:4: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc, 1, cube, OFF, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:234:4: warning: cast to 'cube *' (aka 'struct cube *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc, 1, cube, OFF, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:234:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc, 1, cube, OFF, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:234:4: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:234:4: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc, 1, cube, OFF, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:241:4: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc->upnumeles, 1, int, OFF, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:241:4: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc->upnumeles, 1, int, OFF, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:241:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc->upnumeles, 1, int, OFF, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:241:4: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:241:4: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc->upnumeles, 1, int, OFF, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:298:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cubes, sys->depth+1, cube****, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:298:5: warning: cast to 'cube *****' (aka 'struct cube *****') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cubes, sys->depth+1, cube****, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:298:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cubes, sys->depth+1, cube****, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:298:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:298:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cubes, sys->depth+1, cube****, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:300:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cubes[i], side, cube***, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:300:7: warning: cast to 'cube ****' (aka 'struct cube ****') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cubes[i], side, cube***, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:300:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cubes[i], side, cube***, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:300:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:300:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cubes[i], side, cube***, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:302:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cubes[i][j], side, cube**, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:302:2: warning: cast to 'cube ***' (aka 'struct cube ***') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cubes[i][j], side, cube**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:302:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cubes[i][j], side, cube**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:302:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:302:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cubes[i][j], side, cube**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:304:4: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cubes[i][j][k], side, cube*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:304:4: warning: cast to 'cube **' (aka 'struct cube **') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cubes[i][j][k], side, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:304:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cubes[i][j][k], side, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:304:4: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:304:4: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cubes[i][j][k], side, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:318:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc, 1, cube, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:318:2: warning: cast to 'cube *' (aka 'struct cube *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc, 1, cube, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:318:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc, 1, cube, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:318:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:318:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc, 1, cube, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:321:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc->upnumeles, 1, int, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:321:2: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc->upnumeles, 1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:321:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc->upnumeles, 1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:321:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:321:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc->upnumeles, 1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:340:4: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc->chgs, nextc->upnumeles[0], charge*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:340:4: warning: cast to 'charge **' (aka 'struct charge **') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc->chgs, nextc->upnumeles[0], charge*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:340:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc->chgs, nextc->upnumeles[0], charge*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:340:4: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:340:4: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc->chgs, nextc->upnumeles[0], charge*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:341:4: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc->upnumeles, 1, int, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:341:4: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc->upnumeles, 1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:341:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc->upnumeles, 1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:341:4: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:341:4: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc->upnumeles, 1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:398:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static placeqold(sys, charges) ~~~~~~ ^ ./mulSetup.c:427:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(sys->q, totalq+1, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:427:3: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(sys->q, totalq+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:427:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(sys->q, totalq+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:427:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:427:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(sys->q, totalq+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:428:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(sys->p, totalq+1, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:428:3: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(sys->p, totalq+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:428:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(sys->p, totalq+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:428:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:428:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(sys->p, totalq+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:450:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc, 1, cube, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:450:7: warning: cast to 'cube *' (aka 'struct cube *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc, 1, cube, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:450:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc, 1, cube, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:450:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:450:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc, 1, cube, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:453:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc->upnumeles, 1, int, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:453:7: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc->upnumeles, 1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:453:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc->upnumeles, 1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:453:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:453:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc->upnumeles, 1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:468:4: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc->chgs, nextc->upnumeles[0], charge*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:468:4: warning: cast to 'charge **' (aka 'struct charge **') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc->chgs, nextc->upnumeles[0], charge*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:468:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc->chgs, nextc->upnumeles[0], charge*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:468:4: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:468:4: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc->chgs, nextc->upnumeles[0], charge*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:469:4: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc->upnumeles, 1, int, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:469:4: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc->upnumeles, 1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:469:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc->upnumeles, 1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:469:4: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:469:4: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc->upnumeles, 1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:492:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ ./mulSetup.c:497:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] getrelations(sys) ^ ./mulSetup.c:511:8: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc->kids, nextc->numkids, cube*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:511:8: warning: cast to 'cube **' (aka 'struct cube **') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc->kids, nextc->numkids, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:511:8: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc->kids, nextc->numkids, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:511:8: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:511:8: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc->kids, nextc->numkids, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:524:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(parent, 1, cube, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:524:3: warning: cast to 'cube *' (aka 'struct cube *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(parent, 1, cube, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:524:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(parent, 1, cube, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:524:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:524:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(parent, 1, cube, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:534:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ ./mulSetup.c:539:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] setPosition(sys) ^ ./mulSetup.c:566:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./mulSetup.c:576:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static indexkid(sys, dad, pqindex, pcindex) ~~~~~~ ^ ./mulSetup.c:585:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(dad->upvects, 1, double*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:585:7: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(dad->upvects, 1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:585:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(dad->upvects, 1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:585:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:585:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(dad->upvects, 1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:586:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(dad->nbr_is_dummy, 1, int*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:586:7: warning: cast to 'int **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(dad->nbr_is_dummy, 1, int*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:586:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(dad->nbr_is_dummy, 1, int*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:586:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:586:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(dad->nbr_is_dummy, 1, int*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:602:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ ./mulSetup.c:614:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] setExact(sys, numterms) ^ ./mulSetup.c:684:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nc->upvects, 1, double*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:684:3: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nc->upvects, 1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:684:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nc->upvects, 1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:684:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:684:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nc->upvects, 1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:685:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nc->upnumeles, 1, int, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:685:3: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nc->upnumeles, 1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:685:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nc->upnumeles, 1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:685:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:685:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nc->upnumeles, 1, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:688:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nc->chgs, num_eval_pnts, charge*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:688:3: warning: cast to 'charge **' (aka 'struct charge **') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nc->chgs, num_eval_pnts, charge*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:688:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nc->chgs, num_eval_pnts, charge*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:688:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:688:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nc->chgs, num_eval_pnts, charge*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:696:6: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nc->nbr_is_dummy, 1, int*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:696:6: warning: cast to 'int **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nc->nbr_is_dummy, 1, int*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:696:6: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nc->nbr_is_dummy, 1, int*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:696:6: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:696:6: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nc->nbr_is_dummy, 1, int*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:723:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ ./mulSetup.c:773:26: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] if(nc->numnbrs > 0) CALLOC(nc->nbrs, numnbrs, cube*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:773:26: warning: cast to 'cube **' (aka 'struct cube **') from smaller integer type 'int' [-Wint-to-pointer-cast] if(nc->numnbrs > 0) CALLOC(nc->nbrs, numnbrs, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:773:26: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] if(nc->numnbrs > 0) CALLOC(nc->nbrs, numnbrs, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:773:26: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:773:26: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] if(nc->numnbrs > 0) CALLOC(nc->nbrs, numnbrs, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:809:48: warning: implicit declaration of function 'multerms' is invalid in C99 [-Wimplicit-function-declaration] int dindex, side, depth=sys->depth, numterms=multerms(sys->order); ^ ./mulSetup.c:812:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(sys->multilist, sys->depth+1, cube*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:812:3: warning: cast to 'cube **' (aka 'struct cube **') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(sys->multilist, sys->depth+1, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:812:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(sys->multilist, sys->depth+1, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:812:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:812:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(sys->multilist, sys->depth+1, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:813:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(sys->locallist, sys->depth+1, cube*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:813:3: warning: cast to 'cube **' (aka 'struct cube **') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(sys->locallist, sys->depth+1, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:813:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(sys->locallist, sys->depth+1, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:813:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:813:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(sys->locallist, sys->depth+1, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:827:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nc->multi, numterms, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:827:3: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nc->multi, numterms, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:827:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nc->multi, numterms, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:827:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:827:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nc->multi, numterms, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:839:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nc->local, numterms, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:839:3: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nc->local, numterms, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:839:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nc->local, numterms, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:839:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:839:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nc->local, numterms, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:859:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static setMaxq(sys) ~~~~~~ ^ ./mulSetup.c:947:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./mulSetup.c:952:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static markUp(child, flag) ~~~~~~ ^ ./mulSetup.c:963:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./mulSetup.c:970:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static getInter(child) ~~~~~~ ^ ./mulSetup.c:1031:17: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] if(vects > 0) CALLOC(child->interList, vects, cube*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulSetup.c:1031:17: warning: cast to 'cube **' (aka 'struct cube **') from smaller integer type 'int' [-Wint-to-pointer-cast] if(vects > 0) CALLOC(child->interList, vects, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulSetup.c:1031:17: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] if(vects > 0) CALLOC(child->interList, vects, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulSetup.c:1031:17: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulSetup.c:1031:17: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] if(vects > 0) CALLOC(child->interList, vects, cube*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulSetup.c:1040:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static getAllInter(sys) ~~~~~~ ^ ./mulSetup.c:1055:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./mulSetup.c:1062:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static set_vector_masks(sys) ~~~~~~ ^ ./mulSetup.c:1077:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 234 warnings generated. clang -O2 -DFOUR -c ./mulMats.c ./mulMats.c:51:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] mulMatDirect(sys) ^ ./mulMats.c:76:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc->directq, nummats, double*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMats.c:76:7: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc->directq, nummats, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:76:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc->directq, nummats, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:76:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:76:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc->directq, nummats, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:77:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(temp, nummats, int*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMats.c:77:7: warning: cast to 'int **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(temp, nummats, int*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:77:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(temp, nummats, int*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:77:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:77:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(temp, nummats, int*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:78:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc->directnumeles, nummats, int, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMats.c:78:7: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc->directnumeles, nummats, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:78:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc->directnumeles, nummats, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:78:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:78:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc->directnumeles, nummats, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:79:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc->directmats, nummats, double**, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMats.c:79:7: warning: cast to 'double ***' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc->directmats, nummats, double**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:79:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc->directmats, nummats, double**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:79:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:79:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc->directmats, nummats, double**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:80:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc->precondmats, nummats, double**, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMats.c:80:7: warning: cast to 'double ***' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc->precondmats, nummats, double**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:80:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc->precondmats, nummats, double**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:80:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:80:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc->precondmats, nummats, double**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:171:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ ./mulMats.c:177:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] bdmulMatPrecond(sys) ^ ./mulMats.c:200:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] MALLOC(mat, size, double*, ON, AMSC); ^ ./mulGlobal.h:155:29: note: expanded from macro 'MALLOC' else if(((PNTR)=(TYPE*)MALCORE((unsigned)((NUM)*sizeof(TYPE))))==NULL) { \ ^ ./mulGlobal.h:78:17: note: expanded from macro 'MALCORE' #define MALCORE ualloc ^ ./mulMats.c:200:5: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] MALLOC(mat, size, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:155:22: note: expanded from macro 'MALLOC' else if(((PNTR)=(TYPE*)MALCORE((unsigned)((NUM)*sizeof(TYPE))))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:200:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] MALLOC(mat, size, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:160:8: note: expanded from macro 'MALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:200:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:161:8: note: expanded from macro 'MALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:200:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] MALLOC(mat, size, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:161:8: note: expanded from macro 'MALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:202:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] MALLOC(mat[i], size, double, ON, AMSC); ^ ./mulGlobal.h:155:29: note: expanded from macro 'MALLOC' else if(((PNTR)=(TYPE*)MALCORE((unsigned)((NUM)*sizeof(TYPE))))==NULL) { \ ^ ./mulGlobal.h:78:17: note: expanded from macro 'MALCORE' #define MALCORE ualloc ^ ./mulMats.c:202:7: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] MALLOC(mat[i], size, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:155:22: note: expanded from macro 'MALLOC' else if(((PNTR)=(TYPE*)MALCORE((unsigned)((NUM)*sizeof(TYPE))))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:202:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] MALLOC(mat[i], size, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:160:8: note: expanded from macro 'MALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:202:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:161:8: note: expanded from macro 'MALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:202:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] MALLOC(mat[i], size, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:161:8: note: expanded from macro 'MALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:260:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ ./mulMats.c:279:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] olmulMatPrecond(sys) ^ ./mulMats.c:311:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] MALLOC(reorder, maxsize,int, ON, AMSC); ^ ./mulGlobal.h:155:29: note: expanded from macro 'MALLOC' else if(((PNTR)=(TYPE*)MALCORE((unsigned)((NUM)*sizeof(TYPE))))==NULL) { \ ^ ./mulGlobal.h:78:17: note: expanded from macro 'MALCORE' #define MALCORE ualloc ^ ./mulMats.c:311:3: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] MALLOC(reorder, maxsize,int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:155:22: note: expanded from macro 'MALLOC' else if(((PNTR)=(TYPE*)MALCORE((unsigned)((NUM)*sizeof(TYPE))))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:311:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] MALLOC(reorder, maxsize,int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:160:8: note: expanded from macro 'MALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:311:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:161:8: note: expanded from macro 'MALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:311:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] MALLOC(reorder, maxsize,int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:161:8: note: expanded from macro 'MALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:312:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] MALLOC(mat, maxsize, double*, ON, AMSC); ^ ./mulGlobal.h:155:29: note: expanded from macro 'MALLOC' else if(((PNTR)=(TYPE*)MALCORE((unsigned)((NUM)*sizeof(TYPE))))==NULL) { \ ^ ./mulGlobal.h:78:17: note: expanded from macro 'MALCORE' #define MALCORE ualloc ^ ./mulMats.c:312:3: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] MALLOC(mat, maxsize, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:155:22: note: expanded from macro 'MALLOC' else if(((PNTR)=(TYPE*)MALCORE((unsigned)((NUM)*sizeof(TYPE))))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:312:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] MALLOC(mat, maxsize, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:160:8: note: expanded from macro 'MALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:312:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:161:8: note: expanded from macro 'MALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:312:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] MALLOC(mat, maxsize, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:161:8: note: expanded from macro 'MALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:314:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] MALLOC(mat[i], maxsize, double, ON, AMSC); ^ ./mulGlobal.h:155:29: note: expanded from macro 'MALLOC' else if(((PNTR)=(TYPE*)MALCORE((unsigned)((NUM)*sizeof(TYPE))))==NULL) { \ ^ ./mulGlobal.h:78:17: note: expanded from macro 'MALCORE' #define MALCORE ualloc ^ ./mulMats.c:314:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] MALLOC(mat[i], maxsize, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:155:22: note: expanded from macro 'MALLOC' else if(((PNTR)=(TYPE*)MALCORE((unsigned)((NUM)*sizeof(TYPE))))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:314:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] MALLOC(mat[i], maxsize, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:160:8: note: expanded from macro 'MALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:314:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:161:8: note: expanded from macro 'MALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:314:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] MALLOC(mat[i], maxsize, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:161:8: note: expanded from macro 'MALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:340:2: warning: implicit declaration of function 'find_flux_density_row' is invalid in C99 [-Wimplicit-function-declaration] find_flux_density_row(mat, nc->directmats[0], i, nsize, nsize, 0, 0, ^ ./mulMats.c:368:6: warning: implicit declaration of function 'find_flux_density_row' is invalid in C99 [-Wimplicit-function-declaration] find_flux_density_row(mat, nmat, i, nnsize, nsize, 0, offset, ^ ./mulMats.c:404:3: warning: implicit declaration of function 'find_flux_density_row' is invalid in C99 [-Wimplicit-function-declaration] find_flux_density_row(mat, nmat, i, nnnsize, nnsize, offset, ^ ./mulMats.c:419:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(is_dummy, offset, int, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMats.c:419:7: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(is_dummy, offset, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:419:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(is_dummy, offset, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:419:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:419:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(is_dummy, offset, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:445:15: warning: implicit declaration of function 'compressMat' is invalid in C99 [-Wimplicit-function-declaration] nnnsize = compressMat(mat, offset, is_dummy, BOTH); ^ ./mulMats.c:450:5: warning: implicit declaration of function 'invert' is invalid in C99 [-Wimplicit-function-declaration] invert(mat, nnnsize, NULL); ^ ./mulMats.c:451:5: warning: implicit declaration of function 'expandMat' is invalid in C99 [-Wimplicit-function-declaration] expandMat(mat, offset, nnnsize, is_dummy, BOTH); ^ ./mulMats.c:479:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ ./mulMats.c:499:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] find_flux_density_row(to_mat, from_mat, eval_row, n_chg, n_eval, row_offset, ^ ./mulMats.c:699:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./mulMats.c:719:14: warning: implicit declaration of function 'multerms' is invalid in C99 [-Wimplicit-function-declaration] numterms = multerms(order); ^ ./mulMats.c:729:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc->multi, numterms, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMats.c:729:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc->multi, numterms, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:729:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc->multi, numterms, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:729:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:729:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc->multi, numterms, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:730:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc->upmats, 1, double**, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMats.c:730:5: warning: cast to 'double ***' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc->upmats, 1, double**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:730:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc->upmats, 1, double**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:730:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:730:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc->upmats, 1, double**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:795:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc->multi, numterms, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMats.c:795:2: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc->multi, numterms, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:795:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc->multi, numterms, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:795:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:795:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc->multi, numterms, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:798:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc->upnumeles, nextc->upnumvects, int, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMats.c:798:2: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc->upnumeles, nextc->upnumvects, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:798:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc->upnumeles, nextc->upnumvects, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:798:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:798:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc->upnumeles, nextc->upnumvects, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:799:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc->upvects, nextc->upnumvects, double*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMats.c:799:2: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc->upvects, nextc->upnumvects, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:799:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc->upvects, nextc->upnumvects, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:799:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:799:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc->upvects, nextc->upnumvects, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:800:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nextc->upmats, nextc->upnumvects, double**, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMats.c:800:2: warning: cast to 'double ***' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nextc->upmats, nextc->upnumvects, double**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:800:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nextc->upmats, nextc->upnumvects, double**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:800:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:800:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nextc->upmats, nextc->upnumvects, double**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:913:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nc->evalvects, ttlvects, double*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMats.c:913:7: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nc->evalvects, ttlvects, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:913:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nc->evalvects, ttlvects, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:913:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:913:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nc->evalvects, ttlvects, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:914:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nc->evalnumeles, ttlvects, int, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMats.c:914:7: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nc->evalnumeles, ttlvects, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:914:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nc->evalnumeles, ttlvects, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:914:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:914:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nc->evalnumeles, ttlvects, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:915:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nc->evalmats, ttlvects, double**, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMats.c:915:7: warning: cast to 'double ***' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nc->evalmats, ttlvects, double**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:915:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nc->evalmats, ttlvects, double**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:915:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:915:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nc->evalmats, ttlvects, double**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:998:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] mulMatDown(sys) ^ ./mulMats.c:1015:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nc->downvects, vects, double*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMats.c:1015:2: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nc->downvects, vects, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:1015:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nc->downvects, vects, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:1015:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:1015:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nc->downvects, vects, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:1016:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nc->downnumeles, vects, int, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMats.c:1016:2: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nc->downnumeles, vects, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:1016:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nc->downnumeles, vects, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:1016:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:1016:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nc->downnumeles, vects, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:1017:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nc->downmats, vects, double**, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMats.c:1017:2: warning: cast to 'double ***' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nc->downmats, vects, double**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMats.c:1017:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nc->downmats, vects, double**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMats.c:1017:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMats.c:1017:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nc->downmats, vects, double**, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMats.c:1066:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ 132 warnings generated. clang -O2 -DFOUR -c ./mulDo.c ./mulDo.c:45:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] mulDirect(sys) ^ ./mulDo.c:90:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./mulDo.c:95:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] mulPrecond(sys, type) ^ ./mulDo.c:105:7: warning: implicit declaration of function 'solve' is invalid in C99 [-Wimplicit-function-declaration] solve(nc->precond, nc->prevectq, nc->prevectq, nc->presize); ^ ./mulDo.c:147:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 5 warnings generated. clang -O2 -DFOUR -c ./mulDisplay.c ./mulDisplay.c:39:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] disExtrasimpcube(pc) ^ ./mulDisplay.c:43:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./mulDisplay.c:45:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] disExParsimpcube(pc) ^ ./mulDisplay.c:51:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./mulDisplay.c:53:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] dissimpcube(pc) ^ ./mulDisplay.c:63:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./mulDisplay.c:65:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] discube(pc) ^ ./mulDisplay.c:82:7: warning: implicit declaration of function 'dischg' is invalid in C99 [-Wimplicit-function-declaration] dischg(pc->chgs[i]); ^ ./mulDisplay.c:91:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./mulDisplay.c:93:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] disupcube(pc) ^ ./mulDisplay.c:98:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./mulDisplay.c:100:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] disdirectcube(pc) ^ ./mulDisplay.c:106:5: warning: implicit declaration of function 'dismat' is invalid in C99 [-Wimplicit-function-declaration] dismat(pc->directmats[i], pc->directnumeles[0], pc->directnumeles[i]); ^ ./mulDisplay.c:112:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./mulDisplay.c:115:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] dissys(sys) ^ ./mulDisplay.c:129:16: warning: incompatible pointer types passing 'cube **' (aka 'struct cube **') to parameter of type 'cube *' (aka 'struct cube *'); remove & [-Wincompatible-pointer-types] dissimpcube(&(sys->cubes[i][j][k][l])); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulDisplay.c:135:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./mulDisplay.c:139:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] dismat(mat, rows, cols) ^ ./mulDisplay.c:154:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./mulDisplay.c:157:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] disvect(v, size) ^ ./mulDisplay.c:167:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./mulDisplay.c:169:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] dischg(pq) ^ ./mulDisplay.c:173:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./mulDisplay.c:175:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] disallchg(pq) ^ ./mulDisplay.c:179:43: warning: implicit declaration of function 'disfchg' is invalid in C99 [-Wimplicit-function-declaration] for(nq = pq; nq != NULL; nq = nq->next) disfchg(pq); ^ ./mulDisplay.c:180:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./mulDisplay.c:182:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] disfchg(pq) ^ ./mulDisplay.c:194:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./mulDisplay.c:258:5: warning: implicit declaration of function 'xyz2sphere' is invalid in C99 [-Wimplicit-function-declaration] xyz2sphere(chgs[i]->x, chgs[i]->y, chgs[i]->z, ^ ./mulDisplay.c:288:5: warning: implicit declaration of function 'xyz2sphere' is invalid in C99 [-Wimplicit-function-declaration] xyz2sphere(chgs[i]->x, chgs[i]->y, chgs[i]->z, ^ ./mulDisplay.c:316:16: warning: implicit declaration of function 'multerms' is invalid in C99 [-Wimplicit-function-declaration] dumpMat(mat, multerms(order), numchgs); ^ ./mulDisplay.c:332:16: warning: implicit declaration of function 'multerms' is invalid in C99 [-Wimplicit-function-declaration] dumpMat(mat, multerms(order), multerms(order)); ^ ./mulDisplay.c:344:16: warning: implicit declaration of function 'multerms' is invalid in C99 [-Wimplicit-function-declaration] dumpMat(mat, multerms(order), numchgs); ^ ./mulDisplay.c:393:16: warning: implicit declaration of function 'multerms' is invalid in C99 [-Wimplicit-function-declaration] dumpMat(mat, multerms(order), multerms(order)); ^ ./mulDisplay.c:406:16: warning: implicit declaration of function 'multerms' is invalid in C99 [-Wimplicit-function-declaration] dumpMat(mat, multerms(order), multerms(order)); ^ ./mulDisplay.c:418:25: warning: implicit declaration of function 'multerms' is invalid in C99 [-Wimplicit-function-declaration] dumpMat(mat, numchgs, multerms(order)); ^ ./mulDisplay.c:433:25: warning: implicit declaration of function 'multerms' is invalid in C99 [-Wimplicit-function-declaration] dumpMat(mat, numchgs, multerms(order)); ^ ./mulDisplay.c:639:54: warning: format specifies type 'int' but the argument has type 'double' [-Wformat] fac->index, fac->numsides, fac->depth, fac->mark, fac->greylev); ^~~~~~~~~~~~ ./mulDisplay.c:676:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] dumpSynCore2(str, depth, cnt) ^ ./mulDisplay.c:693:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./mulDisplay.c:1062:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(sym_mat, numconds+1, double*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulDisplay.c:1062:3: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(sym_mat, numconds+1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulDisplay.c:1062:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(sym_mat, numconds+1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulDisplay.c:1062:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulDisplay.c:1062:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(sym_mat, numconds+1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulDisplay.c:1064:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(sym_mat[i], numconds+1, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulDisplay.c:1064:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(sym_mat[i], numconds+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulDisplay.c:1064:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(sym_mat[i], numconds+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulDisplay.c:1064:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulDisplay.c:1064:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(sym_mat[i], numconds+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulDisplay.c:1072:8: warning: implicit declaration of function 'want_this_iter' is invalid in C99 [-Wimplicit-function-declaration] if(want_this_iter(kinp_num_list, i)) continue; ^ ./mulDisplay.c:1149:22: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] if(scale == 1e-18) strcpy(unit, "exa"); ^ ./mulDisplay.c:1149:22: note: include the header or explicitly provide a declaration for 'strcpy' ./mulDisplay.c:1167:18: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] maxlen = MAX(strlen(getConductorName(i, name_list)), maxlen); ^ ./mulDisplay.c:1167:18: note: include the header or explicitly provide a declaration for 'strlen' ./mulDisplay.c:1181:8: warning: implicit declaration of function 'want_this_iter' is invalid in C99 [-Wimplicit-function-declaration] if(want_this_iter(kinp_num_list, j)) continue; ^ ./mulDisplay.c:1190:8: warning: implicit declaration of function 'want_this_iter' is invalid in C99 [-Wimplicit-function-declaration] if(want_this_iter(kinp_num_list, i)) continue; ^ ./mulDisplay.c:1304:7: warning: implicit declaration of function 'mulPrecond' is invalid in C99 [-Wimplicit-function-declaration] mulPrecond(sys, PRECOND); ^ ./mulDisplay.c:1306:18: warning: implicit declaration of function 'savemat_mod' is invalid in C99 [-Wimplicit-function-declaration] if(j == 1) savemat_mod(fp, 1000, "Ctil", num_panels, num_panels, 0, ^ ./mulDisplay.c:1334:18: warning: implicit declaration of function 'savemat_mod' is invalid in C99 [-Wimplicit-function-declaration] if(j == 1) savemat_mod(fp, 1000, "P", num_panels, num_panels, 0, ^ ./mulDisplay.c:1511:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 59 warnings generated. clang -O2 -DFOUR -c ./mulMulti.c ./mulMulti.c:55:10: warning: implicit declaration of function 'costerms' is invalid in C99 [-Wimplicit-function-declaration] return(costerms(order) + sinterms(order)); ^ ./mulMulti.c:55:28: warning: implicit declaration of function 'sinterms' is invalid in C99 [-Wimplicit-function-declaration] return(costerms(order) + sinterms(order)); ^ ./mulMulti.c:234:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(Rho, maxchgs, double, ON, AMSC); /* rho array */ ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:234:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(Rho, maxchgs, double, ON, AMSC); /* rho array */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:234:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(Rho, maxchgs, double, ON, AMSC); /* rho array */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:234:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:234:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(Rho, maxchgs, double, ON, AMSC); /* rho array */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMulti.c:235:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(Rhon, maxchgs, double, ON, AMSC); /* rho^n array */ ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:235:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(Rhon, maxchgs, double, ON, AMSC); /* rho^n array */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:235:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(Rhon, maxchgs, double, ON, AMSC); /* rho^n array */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:235:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:235:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(Rhon, maxchgs, double, ON, AMSC); /* rho^n array */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMulti.c:236:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(Beta, maxchgs, double, ON, AMSC); /* beta array */ ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:236:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(Beta, maxchgs, double, ON, AMSC); /* beta array */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:236:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(Beta, maxchgs, double, ON, AMSC); /* beta array */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:236:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:236:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(Beta, maxchgs, double, ON, AMSC); /* beta array */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMulti.c:237:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(Betam, maxchgs, double, ON, AMSC); /* beta*m array */ ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:237:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(Betam, maxchgs, double, ON, AMSC); /* beta*m array */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:237:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(Betam, maxchgs, double, ON, AMSC); /* beta*m array */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:237:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:237:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(Betam, maxchgs, double, ON, AMSC); /* beta*m array */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMulti.c:238:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(Irn, maxchgs, double, ON, AMSC); /* (1/r)^n+1 vector */ ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:238:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(Irn, maxchgs, double, ON, AMSC); /* (1/r)^n+1 vector */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:238:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(Irn, maxchgs, double, ON, AMSC); /* (1/r)^n+1 vector */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:238:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:238:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(Irn, maxchgs, double, ON, AMSC); /* (1/r)^n+1 vector */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMulti.c:239:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(Ir, maxchgs, double, ON, AMSC); /* 1/r vector */ ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:239:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(Ir, maxchgs, double, ON, AMSC); /* 1/r vector */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:239:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(Ir, maxchgs, double, ON, AMSC); /* 1/r vector */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:239:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:239:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(Ir, maxchgs, double, ON, AMSC); /* 1/r vector */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMulti.c:240:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(Mphi, maxchgs, double, ON, AMSC); /* m*phi vector */ ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:240:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(Mphi, maxchgs, double, ON, AMSC); /* m*phi vector */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:240:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(Mphi, maxchgs, double, ON, AMSC); /* m*phi vector */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:240:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:240:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(Mphi, maxchgs, double, ON, AMSC); /* m*phi vector */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMulti.c:241:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(phi, maxchgs, double, ON, AMSC); /* phi vector */ ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:241:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(phi, maxchgs, double, ON, AMSC); /* phi vector */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:241:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(phi, maxchgs, double, ON, AMSC); /* phi vector */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:241:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:241:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(phi, maxchgs, double, ON, AMSC); /* phi vector */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMulti.c:243:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(tleg, costerms(2*order), double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:243:3: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(tleg, costerms(2*order), double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:243:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(tleg, costerms(2*order), double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:243:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:243:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(tleg, costerms(2*order), double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMulti.c:245:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(factFac, order+1, double*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:245:3: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(factFac, order+1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:245:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(factFac, order+1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:245:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:245:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(factFac, order+1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMulti.c:247:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(factFac[x], order+1, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:247:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(factFac[x], order+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:247:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(factFac[x], order+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:247:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:247:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(factFac[x], order+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMulti.c:283:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(facFrA, 2*order+1, double*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:283:3: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(facFrA, 2*order+1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:283:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(facFrA, 2*order+1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:283:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:283:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(facFrA, 2*order+1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMulti.c:285:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(facFrA[x], 2*order+1, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:285:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(facFrA[x], 2*order+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:285:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(facFrA[x], 2*order+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:285:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:285:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(facFrA[x], 2*order+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMulti.c:288:3: warning: implicit declaration of function 'evalFacFra' is invalid in C99 [-Wimplicit-function-declaration] evalFacFra(facFrA, order); ^ ./mulMulti.c:289:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(sinmkB, 2*order+1, double, ON, AMSC); /* sin[(m+-k)beta] */ ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:289:3: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(sinmkB, 2*order+1, double, ON, AMSC); /* sin[(m+-k)beta] */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:289:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(sinmkB, 2*order+1, double, ON, AMSC); /* sin[(m+-k)beta] */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:289:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:289:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(sinmkB, 2*order+1, double, ON, AMSC); /* sin[(m+-k)beta] */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMulti.c:290:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cosmkB, 2*order+1, double, ON, AMSC); /* cos[(m+-k)beta] */ ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:290:3: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cosmkB, 2*order+1, double, ON, AMSC); /* cos[(m+-k)beta] */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:290:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cosmkB, 2*order+1, double, ON, AMSC); /* cos[(m+-k)beta] */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:290:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:290:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cosmkB, 2*order+1, double, ON, AMSC); /* cos[(m+-k)beta] */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMulti.c:362:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(mat, terms, double*, ON, AQ2M); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:362:3: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(mat, terms, double*, ON, AQ2M); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:362:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(mat, terms, double*, ON, AQ2M); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:362:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:362:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(mat, terms, double*, ON, AQ2M); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMulti.c:364:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(mat[i], numchgs, double, ON, AQ2M); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:364:7: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(mat[i], numchgs, double, ON, AQ2M); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:364:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(mat[i], numchgs, double, ON, AQ2M); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:364:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:364:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(mat[i], numchgs, double, ON, AQ2M); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMulti.c:455:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(mat, terms, double*, ON, AM2M); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:455:3: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(mat, terms, double*, ON, AM2M); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:455:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(mat, terms, double*, ON, AM2M); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:455:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:455:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(mat, terms, double*, ON, AM2M); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMulti.c:456:28: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] for(r=0; r < terms; r++) CALLOC(mat[r], terms, double, ON, AM2M); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:456:28: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] for(r=0; r < terms; r++) CALLOC(mat[r], terms, double, ON, AM2M); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:456:28: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] for(r=0; r < terms; r++) CALLOC(mat[r], terms, double, ON, AM2M); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:456:28: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:456:28: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] for(r=0; r < terms; r++) CALLOC(mat[r], terms, double, ON, AM2M); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMulti.c:560:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(mat, numchgs, double*, ON, AM2P); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:560:3: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(mat, numchgs, double*, ON, AM2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:560:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(mat, numchgs, double*, ON, AM2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:560:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:560:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(mat, numchgs, double*, ON, AM2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulMulti.c:562:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(mat[i], terms, double, ON, AM2P); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulMulti.c:562:7: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(mat[i], terms, double, ON, AM2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulMulti.c:562:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(mat[i], terms, double, ON, AM2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulMulti.c:562:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulMulti.c:562:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(mat[i], terms, double, ON, AM2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ 108 warnings generated. clang -O2 -DFOUR -c ./mulLocal.c ./mulLocal.c:151:15: warning: implicit declaration of function 'multerms' is invalid in C99 [-Wimplicit-function-declaration] int terms = multerms(order); /* the number of non-zero moments */ ^ ./mulLocal.c:152:12: warning: implicit declaration of function 'costerms' is invalid in C99 [-Wimplicit-function-declaration] int ct = costerms(order); /* the number of non-zero cos (bar) moments */ ^ ./mulLocal.c:162:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(mat, terms, double*, ON, AM2L); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulLocal.c:162:3: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(mat, terms, double*, ON, AM2L); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulLocal.c:162:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(mat, terms, double*, ON, AM2L); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulLocal.c:162:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulLocal.c:162:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(mat, terms, double*, ON, AM2L); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulLocal.c:164:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(mat[i], terms, double, ON, AM2L); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulLocal.c:164:7: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(mat[i], terms, double, ON, AM2L); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulLocal.c:164:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(mat[i], terms, double, ON, AM2L); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulLocal.c:164:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulLocal.c:164:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(mat[i], terms, double, ON, AM2L); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulLocal.c:167:3: warning: implicit declaration of function 'xyz2sphere' is invalid in C99 [-Wimplicit-function-declaration] xyz2sphere(x, y, z, xp, yp, zp, &rho, &cosA, &beta); ^ ./mulLocal.c:170:3: warning: implicit declaration of function 'evalLegendre' is invalid in C99 [-Wimplicit-function-declaration] evalLegendre(cosA, tleg, 2*order); /* multi->loc needs 2x legendres */ ^ ./mulLocal.c:240:15: warning: implicit declaration of function 'multerms' is invalid in C99 [-Wimplicit-function-declaration] int terms = multerms(order); /* the number of non-zero moments */ ^ ./mulLocal.c:241:12: warning: implicit declaration of function 'costerms' is invalid in C99 [-Wimplicit-function-declaration] int ct = costerms(order); /* the number of non-zero cos (bar) moments */ ^ ./mulLocal.c:251:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(mat, terms, double*, ON, AL2L); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulLocal.c:251:3: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(mat, terms, double*, ON, AL2L); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulLocal.c:251:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(mat, terms, double*, ON, AL2L); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulLocal.c:251:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulLocal.c:251:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(mat, terms, double*, ON, AL2L); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulLocal.c:253:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(mat[i], terms, double, ON, AL2L); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulLocal.c:253:7: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(mat[i], terms, double, ON, AL2L); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulLocal.c:253:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(mat[i], terms, double, ON, AL2L); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulLocal.c:253:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulLocal.c:253:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(mat[i], terms, double, ON, AL2L); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulLocal.c:256:3: warning: implicit declaration of function 'xyz2sphere' is invalid in C99 [-Wimplicit-function-declaration] xyz2sphere(x, y, z, xc, yc, zc, &rho, &cosA, &beta); ^ ./mulLocal.c:259:3: warning: implicit declaration of function 'evalLegendre' is invalid in C99 [-Wimplicit-function-declaration] evalLegendre(cosA, tleg, 2*order); /* local->local needs 2x legendres */ ^ ./mulLocal.c:343:16: warning: implicit declaration of function 'costerms' is invalid in C99 [-Wimplicit-function-declaration] int cterms = costerms(order), terms = multerms(order); ^ ./mulLocal.c:343:41: warning: implicit declaration of function 'multerms' is invalid in C99 [-Wimplicit-function-declaration] int cterms = costerms(order), terms = multerms(order); ^ ./mulLocal.c:349:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(mat, terms, double*, ON, AQ2L); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulLocal.c:349:3: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(mat, terms, double*, ON, AQ2L); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulLocal.c:349:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(mat, terms, double*, ON, AQ2L); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulLocal.c:349:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulLocal.c:349:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(mat, terms, double*, ON, AQ2L); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulLocal.c:351:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(mat[i], numchgs, double, ON, AQ2L); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulLocal.c:351:7: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(mat[i], numchgs, double, ON, AQ2L); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulLocal.c:351:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(mat[i], numchgs, double, ON, AQ2L); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulLocal.c:351:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulLocal.c:351:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(mat[i], numchgs, double, ON, AQ2L); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulLocal.c:358:5: warning: implicit declaration of function 'xyz2sphere' is invalid in C99 [-Wimplicit-function-declaration] xyz2sphere(chgs[j]->x, chgs[j]->y, chgs[j]->z, ^ ./mulLocal.c:362:5: warning: implicit declaration of function 'evalLegendre' is invalid in C99 [-Wimplicit-function-declaration] evalLegendre(cosA, tleg, order); /* write moments to temporary array */ ^ ./mulLocal.c:449:16: warning: implicit declaration of function 'costerms' is invalid in C99 [-Wimplicit-function-declaration] int cterms = costerms(order), terms = multerms(order); ^ ./mulLocal.c:449:41: warning: implicit declaration of function 'multerms' is invalid in C99 [-Wimplicit-function-declaration] int cterms = costerms(order), terms = multerms(order); ^ ./mulLocal.c:451:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(mat, numchgs, double*, ON, AL2P); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulLocal.c:451:3: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(mat, numchgs, double*, ON, AL2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulLocal.c:451:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(mat, numchgs, double*, ON, AL2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulLocal.c:451:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulLocal.c:451:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(mat, numchgs, double*, ON, AL2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulLocal.c:453:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(mat[i], terms, double, ON, AL2P); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./mulLocal.c:453:7: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(mat[i], terms, double, ON, AL2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mulLocal.c:453:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(mat[i], terms, double, ON, AL2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./mulLocal.c:453:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./mulLocal.c:453:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(mat[i], terms, double, ON, AL2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./mulLocal.c:458:5: warning: implicit declaration of function 'xyz2sphere' is invalid in C99 [-Wimplicit-function-declaration] xyz2sphere(chgs[i]->x, chgs[i]->y, chgs[i]->z, ^ ./mulLocal.c:462:5: warning: implicit declaration of function 'evalLegendre' is invalid in C99 [-Wimplicit-function-declaration] evalLegendre(cosTh, mat[i], order); /* wr moms to 1st (cos) half of row */ ^ 56 warnings generated. clang -O2 -DFOUR -c ./direct.c ./direct.c:48:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(mat, numchgs, double*, ON, AQ2PD); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./direct.c:48:3: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(mat, numchgs, double*, ON, AQ2PD); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./direct.c:48:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(mat, numchgs, double*, ON, AQ2PD); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./direct.c:48:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./direct.c:48:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(mat, numchgs, double*, ON, AQ2PD); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./direct.c:49:30: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] for(i=0; i < numchgs; i++) CALLOC(mat[i], numchgs, double, ON, AQ2PD); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./direct.c:49:30: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] for(i=0; i < numchgs; i++) CALLOC(mat[i], numchgs, double, ON, AQ2PD); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./direct.c:49:30: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] for(i=0; i < numchgs; i++) CALLOC(mat[i], numchgs, double, ON, AQ2PD); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./direct.c:49:30: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./direct.c:49:30: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] for(i=0; i < numchgs; i++) CALLOC(mat[i], numchgs, double, ON, AQ2PD); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./direct.c:91:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(mat, numpchgs, double*, ON, AQ2P); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./direct.c:91:3: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(mat, numpchgs, double*, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./direct.c:91:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(mat, numpchgs, double*, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./direct.c:91:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./direct.c:91:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(mat, numpchgs, double*, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./direct.c:93:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(mat[i], numqchgs, double, ON, AQ2P); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./direct.c:93:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(mat[i], numqchgs, double, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./direct.c:93:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(mat[i], numqchgs, double, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./direct.c:93:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./direct.c:93:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(mat[i], numqchgs, double, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./direct.c:132:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] MALLOC(mat, numchgs, double*, ON, AQ2P); ^ ./mulGlobal.h:155:29: note: expanded from macro 'MALLOC' else if(((PNTR)=(TYPE*)MALCORE((unsigned)((NUM)*sizeof(TYPE))))==NULL) { \ ^ ./mulGlobal.h:78:17: note: expanded from macro 'MALCORE' #define MALCORE ualloc ^ ./direct.c:132:3: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] MALLOC(mat, numchgs, double*, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:155:22: note: expanded from macro 'MALLOC' else if(((PNTR)=(TYPE*)MALCORE((unsigned)((NUM)*sizeof(TYPE))))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./direct.c:132:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] MALLOC(mat, numchgs, double*, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:160:8: note: expanded from macro 'MALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./direct.c:132:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:161:8: note: expanded from macro 'MALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./direct.c:132:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] MALLOC(mat, numchgs, double*, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:161:8: note: expanded from macro 'MALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./direct.c:133:32: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] for(i = 0; i < numchgs; i++) MALLOC(mat[i], numchgs, double, ON, AQ2P); ^ ./mulGlobal.h:155:29: note: expanded from macro 'MALLOC' else if(((PNTR)=(TYPE*)MALCORE((unsigned)((NUM)*sizeof(TYPE))))==NULL) { \ ^ ./mulGlobal.h:78:17: note: expanded from macro 'MALCORE' #define MALCORE ualloc ^ ./direct.c:133:32: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] for(i = 0; i < numchgs; i++) MALLOC(mat[i], numchgs, double, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:155:22: note: expanded from macro 'MALLOC' else if(((PNTR)=(TYPE*)MALCORE((unsigned)((NUM)*sizeof(TYPE))))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./direct.c:133:32: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] for(i = 0; i < numchgs; i++) MALLOC(mat[i], numchgs, double, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:160:8: note: expanded from macro 'MALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./direct.c:133:32: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:161:8: note: expanded from macro 'MALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./direct.c:133:32: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] for(i = 0; i < numchgs; i++) MALLOC(mat[i], numchgs, double, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:161:8: note: expanded from macro 'MALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./direct.c:173:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] MALLOC(mat, size, double*, ON, AMSC); ^ ./mulGlobal.h:155:29: note: expanded from macro 'MALLOC' else if(((PNTR)=(TYPE*)MALCORE((unsigned)((NUM)*sizeof(TYPE))))==NULL) { \ ^ ./mulGlobal.h:78:17: note: expanded from macro 'MALCORE' #define MALCORE ualloc ^ ./direct.c:173:5: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] MALLOC(mat, size, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:155:22: note: expanded from macro 'MALLOC' else if(((PNTR)=(TYPE*)MALCORE((unsigned)((NUM)*sizeof(TYPE))))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./direct.c:173:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] MALLOC(mat, size, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:160:8: note: expanded from macro 'MALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./direct.c:173:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:161:8: note: expanded from macro 'MALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./direct.c:173:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] MALLOC(mat, size, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:161:8: note: expanded from macro 'MALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./direct.c:175:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] MALLOC(mat[i], size, double, ON, AMSC); ^ ./mulGlobal.h:155:29: note: expanded from macro 'MALLOC' else if(((PNTR)=(TYPE*)MALCORE((unsigned)((NUM)*sizeof(TYPE))))==NULL) { \ ^ ./mulGlobal.h:78:17: note: expanded from macro 'MALCORE' #define MALCORE ualloc ^ ./direct.c:175:7: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] MALLOC(mat[i], size, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:155:22: note: expanded from macro 'MALLOC' else if(((PNTR)=(TYPE*)MALCORE((unsigned)((NUM)*sizeof(TYPE))))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./direct.c:175:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] MALLOC(mat[i], size, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:160:8: note: expanded from macro 'MALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./direct.c:175:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:161:8: note: expanded from macro 'MALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./direct.c:175:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] MALLOC(mat[i], size, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:161:8: note: expanded from macro 'MALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./direct.c:319:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_order, size, int, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./direct.c:319:5: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_order, size, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./direct.c:319:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_order, size, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./direct.c:319:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./direct.c:319:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_order, size, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./direct.c:392:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] matcheck(mat, rows, size) ^ ./direct.c:414:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./direct.c:417:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] matlabDump(mat, size, name) ^ ./direct.c:436:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 49 warnings generated. clang -O2 -DFOUR -c ./calcp.c ./calcp.c:83:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] initcalcp(panel_list) ^ ./calcp.c:145:5: warning: implicit declaration of function 'Cross_Product' is invalid in C99 [-Wimplicit-function-declaration] Cross_Product(pq->X, pq->Y, pq->Z); ^ ./calcp.c:147:8: warning: implicit declaration of function 'flip_normal' is invalid in C99 [-Wimplicit-function-declaration] if(flip_normal(pq)) { ^ ./calcp.c:175:8: warning: implicit declaration of function 'planarize' is invalid in C99 [-Wimplicit-function-declaration] if(planarize(pq) == FALSE) { ^ ./calcp.c:177:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(npq, 1, charge, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./calcp.c:177:7: warning: cast to 'charge *' (aka 'struct charge *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(npq, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./calcp.c:177:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(npq, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./calcp.c:177:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./calcp.c:177:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(npq, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./calcp.c:191:5: warning: implicit declaration of function 'centroid' is invalid in C99 [-Wimplicit-function-declaration] centroid(pq, length20); ^ ./calcp.c:223:5: warning: implicit declaration of function 'ComputeMoments' is invalid in C99 [-Wimplicit-function-declaration] ComputeMoments(pq); ^ ./calcp.c:230:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ ./calcp.c:235:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] oldflip_normal(panel) ^ ./calcp.c:278:42: warning: implicit declaration of function 'hack_path' is invalid in C99 [-Wimplicit-function-declaration] fprintf(stderr, " Surface: %s\n", hack_path(surf_name)); ^ ./calcp.c:278:42: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] fprintf(stderr, " Surface: %s\n", hack_path(surf_name)); ~~ ^~~~~~~~~~~~~~~~~~~~ %d ./calcp.c:295:42: warning: implicit declaration of function 'hack_path' is invalid in C99 [-Wimplicit-function-declaration] fprintf(stderr, " Surface: %s\n", hack_path(surf_name)); ^ ./calcp.c:295:42: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] fprintf(stderr, " Surface: %s\n", hack_path(surf_name)); ~~ ^~~~~~~~~~~~~~~~~~~~ %d ./calcp.c:317:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] flip_normal(panel) ^ ./calcp.c:354:40: warning: implicit declaration of function 'hack_path' is invalid in C99 [-Wimplicit-function-declaration] fprintf(stderr, " Surface: %s\n", hack_path(surf_name)); ^ ./calcp.c:354:40: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] fprintf(stderr, " Surface: %s\n", hack_path(surf_name)); ~~ ^~~~~~~~~~~~~~~~~~~~ %d ./calcp.c:374:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] planarize(pq) ^ ./calcp.c:422:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] centroid(pp, x2) ^ ./calcp.c:450:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./calcp.c:479:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] Cross_Product(vector1, vector2, result_vector) ^ ./calcp.c:485:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./calcp.c:660:5: warning: implicit declaration of function 'dp' is invalid in C99 [-Wimplicit-function-declaration] dp(panel); ^ ./calcp.c:669:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] dumpnums(flag, size) ^ ./calcp.c:701:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./calcp.c:717:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] ComputeMoments(pp) ^ ./calcp.c:734:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(XP[i], (order+3), double, ON, AQ2P); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./calcp.c:734:7: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(XP[i], (order+3), double, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./calcp.c:734:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(XP[i], (order+3), double, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./calcp.c:734:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./calcp.c:734:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(XP[i], (order+3), double, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./calcp.c:735:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(YP[i], (order+3), double, ON, AQ2P); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./calcp.c:735:7: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(YP[i], (order+3), double, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./calcp.c:735:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(YP[i], (order+3), double, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./calcp.c:735:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./calcp.c:735:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(YP[i], (order+3), double, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./calcp.c:738:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(I, (order+1), double*, ON, AQ2P); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./calcp.c:738:5: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(I, (order+1), double*, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./calcp.c:738:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(I, (order+1), double*, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./calcp.c:738:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./calcp.c:738:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(I, (order+1), double*, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./calcp.c:739:33: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] for(i = 0; i <= order; i++) CALLOC(I[i], (order+1), double, ON, AQ2P); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./calcp.c:739:33: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] for(i = 0; i <= order; i++) CALLOC(I[i], (order+1), double, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./calcp.c:739:33: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] for(i = 0; i <= order; i++) CALLOC(I[i], (order+1), double, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./calcp.c:739:33: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./calcp.c:739:33: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] for(i = 0; i <= order; i++) CALLOC(I[i], (order+1), double, ON, AQ2P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./calcp.c:827:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ ./calcp.c:831:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] dp(panel) ^ ./calcp.c:871:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./calcp.c:878:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] testCalcp(pp) ^ ./calcp.c:903:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./calcp.c:906:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] fileCorners(pp, f) ^ ./calcp.c:915:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./calcp.c:919:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] calcpm(multi, x, y, z, origorder, order) ^ ./calcp.c:934:14: warning: implicit declaration of function 'multerms' is invalid in C99 [-Wimplicit-function-declaration] numterms = multerms(origorder); ^ ./calcp.c:940:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 59 warnings generated. clang -O2 -DFOUR -c ./fastcap.c ./fastcap.c:38:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^ ./fastcap.c:75:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(title, BUFSIZ, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./fastcap.c:75:3: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(title, BUFSIZ, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./fastcap.c:75:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(title, BUFSIZ, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./fastcap.c:75:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./fastcap.c:75:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(title, BUFSIZ, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./fastcap.c:82:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(axes, 10, double **, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./fastcap.c:82:3: warning: cast to 'double ***' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(axes, 10, double **, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./fastcap.c:82:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(axes, 10, double **, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./fastcap.c:82:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./fastcap.c:82:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(axes, 10, double **, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./fastcap.c:84:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(axes[i], 2, double *, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./fastcap.c:84:5: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(axes[i], 2, double *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./fastcap.c:84:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(axes[i], 2, double *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./fastcap.c:84:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./fastcap.c:84:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(axes[i], 2, double *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./fastcap.c:86:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(axes[i][j], 3, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./fastcap.c:86:7: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(axes[i][j], 3, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./fastcap.c:86:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(axes[i][j], 3, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./fastcap.c:86:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./fastcap.c:86:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(axes[i][j], 3, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./fastcap.c:99:13: warning: implicit declaration of function 'get_ps_file_base' is invalid in C99 [-Wimplicit-function-declaration] if(!q_) get_ps_file_base(argv, argc); ^ ./fastcap.c:100:5: warning: implicit declaration of function 'dump_ps_geometry' is invalid in C99 [-Wimplicit-function-declaration] dump_ps_geometry(chglist, NULL, 0, dd_); ^ ./fastcap.c:176:3: warning: implicit declaration of function 'mulMultiAlloc' is invalid in C99 [-Wimplicit-function-declaration] mulMultiAlloc(MAX(sys->max_eval_pnt, sys->max_panel), numMom, sys->depth); ^ ./fastcap.c:185:3: warning: implicit declaration of function 'mulMatDirect' is invalid in C99 [-Wimplicit-function-declaration] mulMatDirect(sys); /* Compute the direct part matrices. */ ^ ./fastcap.c:198:3: warning: implicit declaration of function 'olmulMatPrecond' is invalid in C99 [-Wimplicit-function-declaration] olmulMatPrecond(sys); ^ ./fastcap.c:216:3: warning: implicit declaration of function 'dumpnums' is invalid in C99 [-Wimplicit-function-declaration] dumpnums(ON, eval_size, up_size); /* save num/type of pot. coeff calcs */ ^ ./fastcap.c:228:3: warning: implicit declaration of function 'mulMatUp' is invalid in C99 [-Wimplicit-function-declaration] mulMatUp(sys); /* Compute the upward pass matrices. */ ^ ./fastcap.c:235:3: warning: implicit declaration of function 'mulMatDown' is invalid in C99 [-Wimplicit-function-declaration] mulMatDown(sys); /* find matrices for full Greengard dnwd pass*/ ^ ./fastcap.c:244:3: warning: implicit declaration of function 'mulMatEval' is invalid in C99 [-Wimplicit-function-declaration] mulMatEval(sys); /* set up matrices for evaluation pass */ ^ ./fastcap.c:266:13: warning: implicit declaration of function 'capsolve' is invalid in C99 [-Wimplicit-function-declaration] ttliter = capsolve(&capmat, sys, chglist, eval_size, up_size, num_cond, ^ ./fastcap.c:270:3: warning: implicit declaration of function 'mksCapDump' is invalid in C99 [-Wimplicit-function-declaration] mksCapDump(capmat, num_cond, relperm, &name_list); ^ 32 warnings generated. clang -O2 -DFOUR -c ./blkDirect.c ./blkDirect.c:196:14: warning: implicit declaration of function 'creat' is invalid in C99 [-Wimplicit-function-declaration] if((fdis = creat(getName(file, name), PMODE)) == -1) { ^ ./blkDirect.c:205:16: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] if((actsiz = write(fdis, (char *)mat, realsiz)) != realsiz) { ^ ./blkDirect.c:211:3: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fdis); ^ ./blkDirect.c:236:14: warning: implicit declaration of function 'open' is invalid in C99 [-Wimplicit-function-declaration] if((fdis = open(getName(file, name), 0)) == -1) { ^ ./blkDirect.c:244:17: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] if(realsiz != read(fdis, (char *)mat, realsiz)) { ^ ./blkDirect.c:248:3: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fdis); ^ ./blkDirect.c:356:13: warning: implicit declaration of function 'open' is invalid in C99 [-Wimplicit-function-declaration] if((fdl = open(getName(matl, name), 0)) == -1) { ^ ./blkDirect.c:363:13: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] readl = read(fdl, (char *)matri, rowliml*siz*ds); ^ ./blkDirect.c:402:5: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fdu); ^ ./blkDirect.c:405:3: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fdl); ^ ./blkDirect.c:557:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(*sqrArray, matsize, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./blkDirect.c:557:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(*sqrArray, matsize, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./blkDirect.c:557:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(*sqrArray, matsize, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./blkDirect.c:557:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./blkDirect.c:557:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(*sqrArray, matsize, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./blkDirect.c:559:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(*triArray, matsize, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./blkDirect.c:559:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(*triArray, matsize, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./blkDirect.c:559:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(*triArray, matsize, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./blkDirect.c:559:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./blkDirect.c:559:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(*triArray, matsize, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./blkDirect.c:560:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(*real_index, numchgs, int, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./blkDirect.c:560:5: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(*real_index, numchgs, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./blkDirect.c:560:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(*real_index, numchgs, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./blkDirect.c:560:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./blkDirect.c:560:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(*real_index, numchgs, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./blkDirect.c:634:56: warning: '/*' within block comment [-Wcomment] /* dumpMatCor((double **)NULL, *sqrArray, numchgs/2); /* for debug */ ^ 26 warnings generated. clang -O2 -DFOUR -c ./uglyalloc.c ./uglyalloc.c:88:7: warning: incompatible redeclaration of library function 'calloc' [-Wincompatible-library-redeclaration] char *calloc(); ^ ./uglyalloc.c:88:7: note: 'calloc' is a builtin with type 'void *(unsigned long, unsigned long)' ./uglyalloc.c:89:7: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration] char *malloc(); ^ ./uglyalloc.c:89:7: note: 'malloc' is a builtin with type 'void *(unsigned long)' ./uglyalloc.c:106:6: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] if((int)cp == -1) return(NULL); ^~~~~~~ ./uglyalloc.c:285:61: warning: format specifies type 'unsigned int' but the argument has type 'char *' [-Wformat] if(base == NULL) fprintf(stdout, "(top of memory = 0x%x", sbrk(0)); ~~ ^~~~~~~ %s 4 warnings generated. clang -O2 -DFOUR -c ./patran.c ./patran.c:83:20: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] if(line == NULL) CALLOC(line, BUFSIZ, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./patran.c:83:20: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] if(line == NULL) CALLOC(line, BUFSIZ, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./patran.c:83:20: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] if(line == NULL) CALLOC(line, BUFSIZ, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./patran.c:83:20: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./patran.c:83:20: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] if(line == NULL) CALLOC(line, BUFSIZ, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./patran.c:99:5: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] input(stream, line, surf_type, trans_vector); ^ ./patran.c:101:5: warning: implicit declaration of function 'grid_equiv_check' is invalid in C99 [-Wimplicit-function-declaration] grid_equiv_check(); ^ ./patran.c:109:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(patch_patch_table, number_patches*number_patches, int, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./patran.c:109:7: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(patch_patch_table, number_patches*number_patches, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./patran.c:109:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(patch_patch_table, number_patches*number_patches, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./patran.c:109:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./patran.c:109:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(patch_patch_table, number_patches*number_patches, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./patran.c:111:7: warning: implicit declaration of function 'fill_patch_patch_table' is invalid in C99 [-Wimplicit-function-declaration] fill_patch_patch_table(patch_patch_table); ^ ./patran.c:113:7: warning: implicit declaration of function 'assign_conductor' is invalid in C99 [-Wimplicit-function-declaration] assign_conductor(patch_patch_table); ^ ./patran.c:117:7: warning: implicit declaration of function 'assign_names' is invalid in C99 [-Wimplicit-function-declaration] assign_names(); ^ ./patran.c:134:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] input(stream, line, surf_type, trans_vector) ^ ./patran.c:157:7: warning: implicit declaration of function 'file_title' is invalid in C99 [-Wimplicit-function-declaration] file_title(stream); ^ ./patran.c:160:7: warning: implicit declaration of function 'summary_data' is invalid in C99 [-Wimplicit-function-declaration] summary_data(stream); ^ ./patran.c:163:7: warning: implicit declaration of function 'node_data' is invalid in C99 [-Wimplicit-function-declaration] node_data(stream, trans_vector); ^ ./patran.c:166:7: warning: implicit declaration of function 'element_data' is invalid in C99 [-Wimplicit-function-declaration] element_data(stream); ^ ./patran.c:169:7: warning: implicit declaration of function 'grid_data' is invalid in C99 [-Wimplicit-function-declaration] grid_data(stream, trans_vector); ^ ./patran.c:172:7: warning: implicit declaration of function 'patch_data' is invalid in C99 [-Wimplicit-function-declaration] patch_data(stream); ^ ./patran.c:175:7: warning: implicit declaration of function 'CFEG_table' is invalid in C99 [-Wimplicit-function-declaration] CFEG_table(stream); ^ ./patran.c:178:52: warning: implicit declaration of function 'name_data' is invalid in C99 [-Wimplicit-function-declaration] if(surf_type == CONDTR || surf_type == BOTH) name_data(stream); ^ ./patran.c:179:12: warning: implicit declaration of function 'waste_line' is invalid in C99 [-Wimplicit-function-declaration] else waste_line(KC, stream); ^ ./patran.c:189:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./patran.c:193:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] waste_line(num_line,stream) ^ ./patran.c:202:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./patran.c:207:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] file_title(stream) ^ ./patran.c:213:24: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] if(title[0] == '\0') strcpy(title, delcr(line)); ^ ./patran.c:213:24: note: include the header or explicitly provide a declaration for 'strcpy' ./patran.c:214:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./patran.c:221:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] summary_data(stream) ^ ./patran.c:226:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(list_nodes, number_nodes, NODE, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./patran.c:226:3: warning: cast to 'NODE *' (aka 'struct node *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(list_nodes, number_nodes, NODE, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./patran.c:226:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(list_nodes, number_nodes, NODE, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./patran.c:226:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./patran.c:226:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(list_nodes, number_nodes, NODE, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./patran.c:227:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(list_elements, number_elements, ELEMENT, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./patran.c:227:3: warning: cast to 'ELEMENT *' (aka 'struct element *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(list_elements, number_elements, ELEMENT, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./patran.c:227:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(list_elements, number_elements, ELEMENT, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./patran.c:227:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./patran.c:227:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(list_elements, number_elements, ELEMENT, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./patran.c:233:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ ./patran.c:240:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] node_data(stream, trans_vector) ^ ./patran.c:254:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./patran.c:262:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] element_data(stream) ^ ./patran.c:286:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./patran.c:292:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] grid_data(stream, trans_vector) ^ ./patran.c:306:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(current_grid, 1, GRID, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./patran.c:306:3: warning: cast to 'GRID *' (aka 'struct grid *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(current_grid, 1, GRID, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./patran.c:306:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(current_grid, 1, GRID, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./patran.c:306:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./patran.c:306:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(current_grid, 1, GRID, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./patran.c:317:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ ./patran.c:324:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] patch_data(stream) ^ ./patran.c:337:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(current_patch, 1, PATCH, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./patran.c:337:3: warning: cast to 'PATCH *' (aka 'struct patch *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(current_patch, 1, PATCH, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./patran.c:337:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(current_patch, 1, PATCH, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./patran.c:337:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./patran.c:337:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(current_patch, 1, PATCH, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./patran.c:345:3: warning: format specifies type 'float *' but the argument has type 'double *' [-Wformat] &tmp, &tmp, &tmp, corner, corner+1, corner+2, corner+3); ^~~~ ./patran.c:345:9: warning: format specifies type 'float *' but the argument has type 'double *' [-Wformat] &tmp, &tmp, &tmp, corner, corner+1, corner+2, corner+3); ^~~~ ./patran.c:345:15: warning: format specifies type 'float *' but the argument has type 'double *' [-Wformat] &tmp, &tmp, &tmp, corner, corner+1, corner+2, corner+3); ^~~~ ./patran.c:350:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ ./patran.c:358:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] CFEG_table(stream) ^ ./patran.c:377:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(current_cfeg, 1, CFEG, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./patran.c:377:5: warning: cast to 'CFEG *' (aka 'struct cfeg *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(current_cfeg, 1, CFEG, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./patran.c:377:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(current_cfeg, 1, CFEG, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./patran.c:377:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./patran.c:377:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(current_cfeg, 1, CFEG, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./patran.c:385:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(element_list, NELS, int, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./patran.c:385:5: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(element_list, NELS, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./patran.c:385:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(element_list, NELS, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./patran.c:385:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./patran.c:385:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(element_list, NELS, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./patran.c:421:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ ./patran.c:432:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] name_data(stream) ^ ./patran.c:440:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(start_name, 1, NAME, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./patran.c:440:5: warning: cast to 'NAME *' (aka 'struct name *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(start_name, 1, NAME, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./patran.c:440:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(start_name, 1, NAME, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./patran.c:440:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./patran.c:440:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(start_name, 1, NAME, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./patran.c:444:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(current_name->next, 1, NAME, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./patran.c:444:5: warning: cast to 'NAME *' (aka 'struct name *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(current_name->next, 1, NAME, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./patran.c:444:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(current_name->next, 1, NAME, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./patran.c:444:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./patran.c:444:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(current_name->next, 1, NAME, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./patran.c:454:9: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] len = strlen(line); ^ ./patran.c:454:9: note: include the header or explicitly provide a declaration for 'strlen' ./patran.c:455:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(current_name->name, len+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./patran.c:455:3: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(current_name->name, len+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./patran.c:455:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(current_name->name, len+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./patran.c:455:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./patran.c:455:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(current_name->name, len+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./patran.c:465:4: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(current_name->patch_list, 1, SM_PATCH, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./patran.c:465:4: warning: cast to 'SM_PATCH *' (aka 'struct sm_patch *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(current_name->patch_list, 1, SM_PATCH, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./patran.c:465:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(current_name->patch_list, 1, SM_PATCH, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./patran.c:465:4: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./patran.c:465:4: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(current_name->patch_list, 1, SM_PATCH, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./patran.c:469:4: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(current_patch->next, 1, SM_PATCH, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./patran.c:469:4: warning: cast to 'SM_PATCH *' (aka 'struct sm_patch *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(current_patch->next, 1, SM_PATCH, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./patran.c:469:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(current_patch->next, 1, SM_PATCH, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./patran.c:469:4: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./patran.c:469:4: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(current_patch->next, 1, SM_PATCH, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./patran.c:483:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ ./patran.c:490:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] grid_equiv_check() ^ ./patran.c:498:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(grid_ptr_1->equiv_ID, number_grids, int, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./patran.c:498:5: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(grid_ptr_1->equiv_ID, number_grids, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./patran.c:498:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(grid_ptr_1->equiv_ID, number_grids, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./patran.c:498:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./patran.c:498:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(grid_ptr_1->equiv_ID, number_grids, int, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./patran.c:509:11: warning: implicit declaration of function 'if_same_coord' is invalid in C99 [-Wimplicit-function-declaration] if (if_same_coord(grid_ptr_1->coord,grid_ptr_2->coord)) { ^ ./patran.c:530:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ ./patran.c:573:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] fill_patch_patch_table(patch_patch_table) ^ ./patran.c:594:6: warning: implicit declaration of function 'if_same_grid' is invalid in C99 [-Wimplicit-function-declaration] if (if_same_grid(*corner++,grid_ptr)) { ^ ./patran.c:609:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./patran.c:634:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] assign_conductor(patch_patch_table) ^ ./patran.c:659:7: warning: implicit declaration of function 'depth_search' is invalid in C99 [-Wimplicit-function-declaration] depth_search(patch_patch_table,current_table_ptr,conductor_count); ^ ./patran.c:674:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./patran.c:680:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] depth_search(patch_patch_table,current_table_ptr,conductor_count) ^ ./patran.c:703:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./patran.c:758:6: warning: implicitly declaring library function 'strcat' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcat(cond_name, name_suffix); ^ ./patran.c:758:6: note: include the header or explicitly provide a declaration for 'strcat' ./patran.c:759:21: warning: implicit declaration of function 'getConductorNum' is invalid in C99 [-Wimplicit-function-declaration] conductor_ID = getConductorNum(cond_name, name_list, num_cond); ^ ./patran.c:800:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(pq,NELS,charge, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./patran.c:800:3: warning: cast to 'charge *' (aka 'struct charge *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(pq,NELS,charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./patran.c:800:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(pq,NELS,charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./patran.c:800:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./patran.c:800:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(pq,NELS,charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./patran.c:854:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] assign_names() ^ ./patran.c:911:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ 129 warnings generated. clang -O2 -DFOUR -c ./quickif.c In file included from ./quickif.c:37: ./quickif.h:69:26: warning: '/*' within block comment [-Wcomment] /* #define MAXCON 10000 /* assumes never more conductors than this */ ^ ./quickif.c:50:9: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] if(!strcmp(name, cur_alias->name)) return(TRUE); ^ ./quickif.c:50:9: note: include the header or explicitly provide a declaration for 'strcmp' ./quickif.c:66:10: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] nlen = strlen(name); ^ ./quickif.c:66:10: note: include the header or explicitly provide a declaration for 'strlen' ./quickif.c:92:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_name->alias_list, 1, Name, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./quickif.c:92:5: warning: cast to 'Name *' (aka 'struct Name *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_name->alias_list, 1, Name, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./quickif.c:92:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_name->alias_list, 1, Name, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./quickif.c:92:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./quickif.c:92:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_name->alias_list, 1, Name, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./quickif.c:93:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_name->alias_list->name, strlen(new_name)+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./quickif.c:93:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_name->alias_list->name, strlen(new_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./quickif.c:93:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_name->alias_list->name, strlen(new_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./quickif.c:93:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./quickif.c:93:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_name->alias_list->name, strlen(new_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./quickif.c:94:5: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcpy(cur_name->alias_list->name, new_name); ^ ./quickif.c:94:5: note: include the header or explicitly provide a declaration for 'strcpy' ./quickif.c:97:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(last_alias, 1, Name, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./quickif.c:97:5: warning: cast to 'Name *' (aka 'struct Name *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(last_alias, 1, Name, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./quickif.c:97:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(last_alias, 1, Name, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./quickif.c:97:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./quickif.c:97:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(last_alias, 1, Name, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./quickif.c:98:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(last_alias->name, strlen(new_name)+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./quickif.c:98:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(last_alias->name, strlen(new_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./quickif.c:98:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(last_alias->name, strlen(new_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./quickif.c:98:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./quickif.c:98:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(last_alias->name, strlen(new_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./quickif.c:134:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(*name_list, 1, Name, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./quickif.c:134:5: warning: cast to 'Name *' (aka 'struct Name *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(*name_list, 1, Name, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./quickif.c:134:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(*name_list, 1, Name, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./quickif.c:134:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./quickif.c:134:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(*name_list, 1, Name, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./quickif.c:135:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC((*name_list)->name, strlen(name)+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./quickif.c:135:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC((*name_list)->name, strlen(name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./quickif.c:135:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC((*name_list)->name, strlen(name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./quickif.c:135:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./quickif.c:135:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC((*name_list)->name, strlen(name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./quickif.c:151:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(prev_name->next, 1, Name, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./quickif.c:151:3: warning: cast to 'Name *' (aka 'struct Name *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(prev_name->next, 1, Name, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./quickif.c:151:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(prev_name->next, 1, Name, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./quickif.c:151:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./quickif.c:151:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(prev_name->next, 1, Name, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./quickif.c:152:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(prev_name->next->name, strlen(name)+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./quickif.c:152:3: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(prev_name->next->name, strlen(name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./quickif.c:152:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(prev_name->next->name, strlen(name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./quickif.c:152:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./quickif.c:152:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(prev_name->next->name, strlen(name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./quickif.c:236:4: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_name->name, strlen(new_name)+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./quickif.c:236:4: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_name->name, strlen(new_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./quickif.c:236:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_name->name, strlen(new_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./quickif.c:236:4: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./quickif.c:236:4: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_name->name, strlen(new_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./quickif.c:323:7: warning: implicitly declaring library function 'strcat' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcat(condstr, name_suffix); ^ ./quickif.c:323:7: note: include the header or explicitly provide a declaration for 'strcat' ./quickif.c:327:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(fstquad, 1, quadl, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./quickif.c:327:2: warning: cast to 'quadl *' (aka 'struct quadl *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(fstquad, 1, quadl, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./quickif.c:327:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(fstquad, 1, quadl, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./quickif.c:327:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./quickif.c:327:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(fstquad, 1, quadl, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./quickif.c:331:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(curquad->next, 1, quadl, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./quickif.c:331:2: warning: cast to 'quadl *' (aka 'struct quadl *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(curquad->next, 1, quadl, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./quickif.c:331:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(curquad->next, 1, quadl, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./quickif.c:331:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./quickif.c:331:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(curquad->next, 1, quadl, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./quickif.c:337:45: warning: incompatible pointer types passing 'Name *' (aka 'struct Name *') to parameter of type 'Name **' (aka 'struct Name **'); take the address with & [-Wincompatible-pointer-types] curquad->cond = getConductorNum(condstr, name_list, num_cond); ^~~~~~~~~ & ./quickif.c:365:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(fsttri, 1, tri, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./quickif.c:365:2: warning: cast to 'tri *' (aka 'struct tri *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(fsttri, 1, tri, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./quickif.c:365:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(fsttri, 1, tri, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./quickif.c:365:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./quickif.c:365:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(fsttri, 1, tri, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./quickif.c:369:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(curtri->next, 1, tri, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./quickif.c:369:2: warning: cast to 'tri *' (aka 'struct tri *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(curtri->next, 1, tri, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./quickif.c:369:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(curtri->next, 1, tri, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./quickif.c:369:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./quickif.c:369:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(curtri->next, 1, tri, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./quickif.c:378:44: warning: incompatible pointer types passing 'Name *' (aka 'struct Name *') to parameter of type 'Name **' (aka 'struct Name **'); take the address with & [-Wincompatible-pointer-types] curtri->cond = getConductorNum(condstr, name_list, num_cond); ^~~~~~~~~ & ./quickif.c:407:37: warning: incompatible pointer types passing 'Name *' (aka 'struct Name *') to parameter of type 'Name **' (aka 'struct Name **'); take the address with & [-Wincompatible-pointer-types] if(renameConductor(condstr, temp2, name_list, num_cond) == FALSE) ^~~~~~~~~ & ./quickif.c:427:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(chglst, 1, charge, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./quickif.c:427:7: warning: cast to 'charge *' (aka 'struct charge *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(chglst, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./quickif.c:427:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(chglst, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./quickif.c:427:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./quickif.c:427:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(chglst, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./quickif.c:431:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nq->next, 1, charge, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./quickif.c:431:7: warning: cast to 'charge *' (aka 'struct charge *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nq->next, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./quickif.c:431:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nq->next, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./quickif.c:431:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./quickif.c:431:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nq->next, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./quickif.c:456:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(chglst, 1, charge, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./quickif.c:456:7: warning: cast to 'charge *' (aka 'struct charge *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(chglst, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./quickif.c:456:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(chglst, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./quickif.c:456:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./quickif.c:456:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(chglst, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./quickif.c:460:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(nq->next, 1, charge, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./quickif.c:460:7: warning: cast to 'charge *' (aka 'struct charge *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(nq->next, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./quickif.c:460:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(nq->next, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./quickif.c:460:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./quickif.c:460:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(nq->next, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ 93 warnings generated. clang -O2 -DFOUR -c ./electric.c clang -O2 -DFOUR -c ./input.c ./input.c:145:6: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] if(!strcmp(plus, "+")) end_of_chain = FALSE; ^ ./input.c:145:6: note: include the header or explicitly provide a declaration for 'strcmp' ./input.c:150:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(*surf_list, 1, surface, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:150:2: warning: cast to 'surface *' (aka 'struct surface *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(*surf_list, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:150:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(*surf_list, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:150:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:150:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(*surf_list, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:154:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_surf->next, 1, surface, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:154:2: warning: cast to 'surface *' (aka 'struct surface *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_surf->next, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:154:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_surf->next, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:154:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:154:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_surf->next, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:164:30: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] CALLOC(cur_surf->name, strlen(file_name)+1, char, ON, AMSC); ^ ./input.c:164:30: note: include the header or explicitly provide a declaration for 'strlen' ./input.c:164:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_surf->name, strlen(file_name)+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:164:7: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_surf->name, strlen(file_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:164:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_surf->name, strlen(file_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:164:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:164:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_surf->name, strlen(file_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:165:7: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcpy(cur_surf->name, file_name); ^ ./input.c:165:7: note: include the header or explicitly provide a declaration for 'strcpy' ./input.c:169:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_surf->group_name, strlen(group_name)+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:169:7: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_surf->group_name, strlen(group_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:169:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_surf->group_name, strlen(group_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:169:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:169:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_surf->group_name, strlen(group_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:206:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(*surf_list, 1, surface, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:206:2: warning: cast to 'surface *' (aka 'struct surface *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(*surf_list, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:206:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(*surf_list, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:206:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:206:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(*surf_list, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:210:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_surf->next, 1, surface, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:210:2: warning: cast to 'surface *' (aka 'struct surface *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_surf->next, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:210:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_surf->next, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:210:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:210:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_surf->next, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:224:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_surf->name, strlen(file_name)+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:224:7: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_surf->name, strlen(file_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:224:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_surf->name, strlen(file_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:224:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:224:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_surf->name, strlen(file_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:230:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_surf->group_name, strlen(group_name)+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:230:7: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_surf->group_name, strlen(group_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:230:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_surf->group_name, strlen(group_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:230:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:230:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_surf->group_name, strlen(group_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:261:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(*surf_list, 1, surface, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:261:2: warning: cast to 'surface *' (aka 'struct surface *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(*surf_list, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:261:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(*surf_list, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:261:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:261:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(*surf_list, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:265:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_surf->next, 1, surface, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:265:2: warning: cast to 'surface *' (aka 'struct surface *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_surf->next, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:265:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_surf->next, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:265:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:265:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_surf->next, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:279:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_surf->name, strlen(file_name)+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:279:7: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_surf->name, strlen(file_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:279:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_surf->name, strlen(file_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:279:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:279:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_surf->name, strlen(file_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:285:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_surf->group_name, strlen(group_name)+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:285:7: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_surf->group_name, strlen(group_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:285:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_surf->group_name, strlen(group_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:285:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:285:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_surf->group_name, strlen(group_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:427:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(dummy_list, 1, charge, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:427:7: warning: cast to 'charge *' (aka 'struct charge *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(dummy_list, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:427:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(dummy_list, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:427:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:427:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(dummy_list, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:431:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_dummy->next, 1, charge, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:431:7: warning: cast to 'charge *' (aka 'struct charge *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_dummy->next, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:431:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_dummy->next, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:431:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:431:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_dummy->next, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:446:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_dummy->next, 1, charge, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:446:5: warning: cast to 'charge *' (aka 'struct charge *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_dummy->next, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:446:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_dummy->next, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:446:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:446:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_dummy->next, 1, charge, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:671:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(ps_file_base, strlen(temp)+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:671:7: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(ps_file_base, strlen(temp)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:671:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(ps_file_base, strlen(temp)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:671:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:671:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(ps_file_base, strlen(temp)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:680:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(ps_file_base, strlen(temp)+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:680:7: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(ps_file_base, strlen(temp)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:680:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(ps_file_base, strlen(temp)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:680:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:680:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(ps_file_base, strlen(temp)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:687:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(ps_file_base, strlen("stdin")+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:687:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(ps_file_base, strlen("stdin")+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:687:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(ps_file_base, strlen("stdin")+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:687:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:687:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(ps_file_base, strlen("stdin")+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:768:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_surf->title, strlen(title)+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:768:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_surf->title, strlen(title)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:768:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_surf->title, strlen(title)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:768:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:768:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_surf->title, strlen(title)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:780:5: warning: implicit declaration of function 'initcalcp' is invalid in C99 [-Wimplicit-function-declaration] initcalcp(cur_surf->panels);/* get normals, edges, perpendiculars */ ^ ./input.c:783:50: warning: '/*' within block comment [-Wcomment] align_normals(cur_surf->panels, cur_surf); /* now done in calcp */ ^ ./input.c:921:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(kill_num_list, 1, ITER, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:921:7: warning: cast to 'ITER *' (aka 'struct ITER *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(kill_num_list, 1, ITER, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:921:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(kill_num_list, 1, ITER, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:921:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:921:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(kill_num_list, 1, ITER, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:925:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_cond->next, 1, ITER, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:925:7: warning: cast to 'ITER *' (aka 'struct ITER *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_cond->next, 1, ITER, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:925:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_cond->next, 1, ITER, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:925:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:925:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_cond->next, 1, ITER, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:1140:22: warning: more '%' conversions than data arguments [-Wformat] fprintf(stderr, "%s: bad up axis type `%s' -- use x, y or z\n"); ~^ ./input.c:1172:22: warning: data argument not used by format string [-Wformat-extra-args] DEFDST, DEFSCL, DEFWID); ^ ./zbufGlobal.h:135:16: note: expanded from macro 'DEFWID' #define DEFWID 1.0 /* default line width, points (-w) */ ^ ./input.c:1213:5: warning: implicit declaration of function 'dumpConfig' is invalid in C99 [-Wimplicit-function-declaration] dumpConfig(stderr, argv[0]); ^ ./input.c:1239:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(surf_list, 1, surface, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:1239:5: warning: cast to 'surface *' (aka 'struct surface *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(surf_list, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:1239:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(surf_list, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:1239:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:1239:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(surf_list, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:1241:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(surf_list->name, strlen("stdin")+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:1241:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(surf_list->name, strlen("stdin")+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:1241:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(surf_list->name, strlen("stdin")+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:1241:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:1241:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(surf_list->name, strlen("stdin")+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:1247:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(surf_list->group_name, strlen(group_name)+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:1247:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(surf_list->group_name, strlen(group_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:1247:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(surf_list->group_name, strlen(group_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:1247:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:1247:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(surf_list->group_name, strlen(group_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:1260:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(surf_list, 1, surface, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:1260:7: warning: cast to 'surface *' (aka 'struct surface *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(surf_list, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:1260:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(surf_list, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:1260:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:1260:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(surf_list, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:1264:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_surf->next, 1, surface, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:1264:7: warning: cast to 'surface *' (aka 'struct surface *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_surf->next, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:1264:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_surf->next, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:1264:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:1264:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_surf->next, 1, surface, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:1268:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_surf->name, strlen(input_file)+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:1268:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_surf->name, strlen(input_file)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:1268:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_surf->name, strlen(input_file)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:1268:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:1268:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_surf->name, strlen(input_file)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:1274:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_surf->group_name, strlen(group_name)+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:1274:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_surf->group_name, strlen(group_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:1274:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_surf->group_name, strlen(group_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:1274:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:1274:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_surf->group_name, strlen(group_name)+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:1391:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_name->name, slen+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:1391:2: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_name->name, slen+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:1391:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_name->name, slen+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:1391:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:1391:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_name->name, slen+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:1399:4: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cur_alias->name, slen+1, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./input.c:1399:4: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cur_alias->name, slen+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./input.c:1399:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cur_alias->name, slen+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./input.c:1399:4: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./input.c:1399:4: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cur_alias->name, slen+1, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./input.c:1555:6: warning: implicit declaration of function 'gethostname' is invalid in C99 [-Wimplicit-function-declaration] if(gethostname(hostname, BUFSIZ) != -1) ^ 159 warnings generated. clang -O2 -DFOUR -c ./psMatDisplay.c ./psMatDisplay.c:101:3: warning: implicit declaration of function 'copyBody' is invalid in C99 [-Wimplicit-function-declaration] copyBody(fp); /* copys the body of the header from ^ ./psMatDisplay.c:147:7: warning: implicitly declaring library function 'strcat' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcat(line, argv[f]); ^ ./psMatDisplay.c:147:7: note: include the header or explicitly provide a declaration for 'strcat' ./psMatDisplay.c:151:5: warning: implicit declaration of function 'dump_line_as_ps' is invalid in C99 [-Wimplicit-function-declaration] dump_line_as_ps(fp, line, OFFSETX+2*CMDFONT, OFFSETY+IMAGEY+CMDFONT/2, ^ ./psMatDisplay.c:273:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(aliased_matrix, num_alias_r, char*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./psMatDisplay.c:273:5: warning: cast to 'char **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(aliased_matrix, num_alias_r, char*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./psMatDisplay.c:273:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(aliased_matrix, num_alias_r, char*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./psMatDisplay.c:273:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./psMatDisplay.c:273:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(aliased_matrix, num_alias_r, char*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./psMatDisplay.c:275:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(aliased_matrix[i], num_alias_c, char, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./psMatDisplay.c:275:7: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(aliased_matrix[i], num_alias_c, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./psMatDisplay.c:275:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(aliased_matrix[i], num_alias_c, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./psMatDisplay.c:275:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./psMatDisplay.c:275:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(aliased_matrix[i], num_alias_c, char, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ 13 warnings generated. clang -O2 -DFOUR -c ./capsolve.c ./capsolve.c:67:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC((*capmat), numconds+1, double*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./capsolve.c:67:3: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC((*capmat), numconds+1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./capsolve.c:67:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC((*capmat), numconds+1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./capsolve.c:67:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./capsolve.c:67:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC((*capmat), numconds+1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./capsolve.c:69:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC((*capmat)[i], numconds+1, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./capsolve.c:69:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC((*capmat)[i], numconds+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./capsolve.c:69:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC((*capmat)[i], numconds+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./capsolve.c:69:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./capsolve.c:69:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC((*capmat)[i], numconds+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./capsolve.c:73:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(q, size+1, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./capsolve.c:73:3: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(q, size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./capsolve.c:73:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(q, size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./capsolve.c:73:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./capsolve.c:73:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(q, size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./capsolve.c:74:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(r, size+1, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./capsolve.c:74:3: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(r, size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./capsolve.c:74:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(r, size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./capsolve.c:74:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./capsolve.c:74:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(r, size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./capsolve.c:80:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(bp, maxiter+1, double*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./capsolve.c:80:3: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(bp, maxiter+1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./capsolve.c:80:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(bp, maxiter+1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./capsolve.c:80:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./capsolve.c:80:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(bp, maxiter+1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./capsolve.c:81:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(bap, maxiter+1, double*, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./capsolve.c:81:3: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(bap, maxiter+1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./capsolve.c:81:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(bap, maxiter+1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./capsolve.c:81:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./capsolve.c:81:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(bap, maxiter+1, double*, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./capsolve.c:100:8: warning: implicit declaration of function 'want_this_iter' is invalid in C99 [-Wimplicit-function-declaration] if(want_this_iter(kill_num_list, cond) ^ ./capsolve.c:134:16: warning: implicit declaration of function 'gmres' is invalid in C99 [-Wimplicit-function-declaration] if((iter = gmres(sys,q,p,r,ap,bp,bap,size,maxiter,iter_tol,chglist)) ^ ./capsolve.c:159:7: warning: implicit declaration of function 'dump_ps_geometry' is invalid in C99 [-Wimplicit-function-declaration] dump_ps_geometry(chglist, q, cond, dd_); ^ ./capsolve.c:226:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(bp[iter], size+1, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./capsolve.c:226:7: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(bp[iter], size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./capsolve.c:226:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(bp[iter], size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./capsolve.c:226:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./capsolve.c:226:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(bp[iter], size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./capsolve.c:227:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(bap[iter], size+1, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./capsolve.c:227:7: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(bap[iter], size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./capsolve.c:227:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(bap[iter], size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./capsolve.c:227:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./capsolve.c:227:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(bap[iter], size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./capsolve.c:239:5: warning: implicit declaration of function 'computePsi' is invalid in C99 [-Wimplicit-function-declaration] computePsi(sys, chglist); ^ ./capsolve.c:308:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] oldcomputePsi(sys, chglist) ^ ./capsolve.c:315:3: warning: implicit declaration of function 'mulDirect' is invalid in C99 [-Wimplicit-function-declaration] mulDirect(sys); ^ ./capsolve.c:320:3: warning: implicit declaration of function 'mulUp' is invalid in C99 [-Wimplicit-function-declaration] mulUp(sys); ^ ./capsolve.c:334:3: warning: implicit declaration of function 'mulDown' is invalid in C99 [-Wimplicit-function-declaration] mulDown(sys); /* do heirarchical local shift dwnwd pass */ ^ ./capsolve.c:341:3: warning: implicit declaration of function 'mulEval' is invalid in C99 [-Wimplicit-function-declaration] mulEval(sys); /* evaluate either locals or multis or both */ ^ ./capsolve.c:351:3: warning: implicit declaration of function 'compute_electric_fields' is invalid in C99 [-Wimplicit-function-declaration] compute_electric_fields(sys, chglist); ^ ./capsolve.c:362:1: warning: non-void function does not return a value [-Wreturn-type] } ^ ./capsolve.c:391:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(bp[iter], size+1, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./capsolve.c:391:7: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(bp[iter], size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./capsolve.c:391:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(bp[iter], size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./capsolve.c:391:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./capsolve.c:391:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(bp[iter], size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./capsolve.c:392:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(bap[iter], size+1, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./capsolve.c:392:7: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(bap[iter], size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./capsolve.c:392:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(bap[iter], size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./capsolve.c:392:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./capsolve.c:392:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(bap[iter], size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./capsolve.c:399:5: warning: implicit declaration of function 'computePsi' is invalid in C99 [-Wimplicit-function-declaration] computePsi(sys, p, ap, size, chglist); ^ ./capsolve.c:456:3: warning: implicit declaration of function 'mulPrecond' is invalid in C99 [-Wimplicit-function-declaration] mulPrecond(sys, PRECOND); ^ ./capsolve.c:493:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(c, size+1, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./capsolve.c:493:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(c, size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./capsolve.c:493:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(c, size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./capsolve.c:493:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./capsolve.c:493:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(c, size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./capsolve.c:494:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(s, size+1, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./capsolve.c:494:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(s, size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./capsolve.c:494:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(s, size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./capsolve.c:494:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./capsolve.c:494:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(s, size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./capsolve.c:495:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(g, size+1, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./capsolve.c:495:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(g, size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./capsolve.c:495:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(g, size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./capsolve.c:495:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./capsolve.c:495:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(g, size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./capsolve.c:496:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(y, size+1, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./capsolve.c:496:5: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(y, size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./capsolve.c:496:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(y, size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./capsolve.c:496:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./capsolve.c:496:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(y, size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./capsolve.c:520:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(bv[iter], size+1, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./capsolve.c:520:7: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(bv[iter], size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./capsolve.c:520:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(bv[iter], size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./capsolve.c:520:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./capsolve.c:520:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(bv[iter], size+1, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./capsolve.c:521:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(bh[iter], iter+2, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./capsolve.c:521:7: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(bh[iter], iter+2, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./capsolve.c:521:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(bh[iter], iter+2, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./capsolve.c:521:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./capsolve.c:521:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(bh[iter], iter+2, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./capsolve.c:531:5: warning: implicit declaration of function 'computePsi' is invalid in C99 [-Wimplicit-function-declaration] computePsi(sys, p, ap, size, chglist); ^ ./capsolve.c:623:3: warning: implicit declaration of function 'mulPrecond' is invalid in C99 [-Wimplicit-function-declaration] mulPrecond(sys, PRECOND); ^ ./capsolve.c:644:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] computePsi(sys, q, p, size, chglist) ^ ./capsolve.c:661:3: warning: implicit declaration of function 'mulPrecond' is invalid in C99 [-Wimplicit-function-declaration] mulPrecond(sys, PRECOND); ^ ./capsolve.c:673:3: warning: implicit declaration of function 'mulDirect' is invalid in C99 [-Wimplicit-function-declaration] mulDirect(sys); ^ ./capsolve.c:678:3: warning: implicit declaration of function 'mulUp' is invalid in C99 [-Wimplicit-function-declaration] mulUp(sys); ^ ./capsolve.c:691:3: warning: implicit declaration of function 'mulDown' is invalid in C99 [-Wimplicit-function-declaration] mulDown(sys); /* do heirarchical local shift dwnwd pass */ ^ ./capsolve.c:698:3: warning: implicit declaration of function 'mulEval' is invalid in C99 [-Wimplicit-function-declaration] mulEval(sys); /* evaluate either locals or multis or both */ ^ ./capsolve.c:710:3: warning: implicit declaration of function 'compute_electric_fields' is invalid in C99 [-Wimplicit-function-declaration] compute_electric_fields(sys, chglist); ^ ./capsolve.c:717:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ 103 warnings generated. clang -O2 -DFOUR -c ./savemat_mod.c ./savemat_mod.c:96:13: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] x.namlen = strlen(pname) + 1; ^ ./savemat_mod.c:96:13: note: include the header or explicitly provide a declaration for 'strlen' 1 warning generated. clang -O2 -DFOUR -c ./zbufInOut.c ./zbufInOut.c:157:10: warning: implicit declaration of function 'want_this_iter' is invalid in C99 [-Wimplicit-function-declaration] if(want_this_iter(kq_num_list, panel->cond)) continue; ^ ./zbufInOut.c:192:10: warning: implicit declaration of function 'want_this_iter' is invalid in C99 [-Wimplicit-function-declaration] if(want_this_iter(kq_num_list, panel->cond)) continue; ^ ./zbufInOut.c:245:6: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] if(!strcmp(str1, "Panel") && !strcmp(str2, "charges,") ^ ./zbufInOut.c:245:6: note: include the header or explicitly provide a declaration for 'strcmp' ./zbufInOut.c:345:10: warning: implicit declaration of function 'want_this_iter' is invalid in C99 [-Wimplicit-function-declaration] if(want_this_iter(kq_num_list, chgp->cond)) continue; ^ ./zbufInOut.c:354:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(head, 1, face, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./zbufInOut.c:354:7: warning: cast to 'face *' (aka 'struct face *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(head, 1, face, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./zbufInOut.c:354:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(head, 1, face, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./zbufInOut.c:354:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./zbufInOut.c:354:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(head, 1, face, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./zbufInOut.c:358:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(tail->next, 1, face, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./zbufInOut.c:358:7: warning: cast to 'face *' (aka 'struct face *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(tail->next, 1, face, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./zbufInOut.c:358:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(tail->next, 1, face, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./zbufInOut.c:358:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./zbufInOut.c:358:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(tail->next, 1, face, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./zbufInOut.c:363:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(tail->c, tail->numsides, double *, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./zbufInOut.c:363:5: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(tail->c, tail->numsides, double *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./zbufInOut.c:363:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(tail->c, tail->numsides, double *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./zbufInOut.c:363:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./zbufInOut.c:363:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(tail->c, tail->numsides, double *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./zbufInOut.c:365:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(tail->c[i], 3, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./zbufInOut.c:365:2: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(tail->c[i], 3, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./zbufInOut.c:365:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(tail->c[i], 3, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./zbufInOut.c:365:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./zbufInOut.c:365:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(tail->c[i], 3, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./zbufInOut.c:381:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(faces, *numfaces, face *, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./zbufInOut.c:381:3: warning: cast to 'face **' (aka 'struct face **') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(faces, *numfaces, face *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./zbufInOut.c:381:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(faces, *numfaces, face *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./zbufInOut.c:381:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./zbufInOut.c:381:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(faces, *numfaces, face *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./zbufInOut.c:488:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC((*tail), 1, line, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./zbufInOut.c:488:2: warning: cast to 'line *' (aka 'struct line *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC((*tail), 1, line, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./zbufInOut.c:488:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC((*tail), 1, line, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./zbufInOut.c:488:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./zbufInOut.c:488:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC((*tail), 1, line, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./zbufInOut.c:493:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC((*tail)->next, 1, line, ON, AMSC); /* link forward */ ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./zbufInOut.c:493:2: warning: cast to 'line *' (aka 'struct line *') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC((*tail)->next, 1, line, ON, AMSC); /* link forward */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./zbufInOut.c:493:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC((*tail)->next, 1, line, ON, AMSC); /* link forward */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./zbufInOut.c:493:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./zbufInOut.c:493:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC((*tail)->next, 1, line, ON, AMSC); /* link forward */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./zbufInOut.c:567:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(linesout, (*numlines), line *, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./zbufInOut.c:567:3: warning: cast to 'line **' (aka 'struct line **') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(linesout, (*numlines), line *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./zbufInOut.c:567:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(linesout, (*numlines), line *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./zbufInOut.c:567:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./zbufInOut.c:567:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(linesout, (*numlines), line *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./zbufInOut.c:1015:38: warning: '/*' within block comment [-Wcomment] /* y += (numfaces*stepy + 3*FONT); /* offset 2nd array */ ^ ./zbufInOut.c:1129:5: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcpy(linein, "DENSITY, statC/m^2"); ^ ./zbufInOut.c:1129:5: note: include the header or explicitly provide a declaration for 'strcpy' ./zbufInOut.c:1198:53: warning: format specifies type 'int' but the argument has type 'double' [-Wformat] fprintf(fp, "f1 [%d 0 0 %d 0 0] makesetfont\n", FONT, FONT); ~~ ^~~~ %f ./zbufGlobal.h:66:14: note: expanded from macro 'FONT' #define FONT 5.0 /* font size used to label lines in ps file */ ^~~ ./zbufInOut.c:1198:59: warning: format specifies type 'int' but the argument has type 'double' [-Wformat] fprintf(fp, "f1 [%d 0 0 %d 0 0] makesetfont\n", FONT, FONT); ~~ ^~~~ %f ./zbufGlobal.h:66:14: note: expanded from macro 'FONT' #define FONT 5.0 /* font size used to label lines in ps file */ ^~~ ./zbufInOut.c:1417:7: warning: implicitly declaring library function 'strcat' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcat(linein, argv[f]); ^ ./zbufInOut.c:1417:7: note: include the header or explicitly provide a declaration for 'strcat' 49 warnings generated. clang -O2 -DFOUR -c ./zbuf2fastcap.c ./zbuf2fastcap.c:102:3: warning: implicit declaration of function 'initFaces' is invalid in C99 [-Wimplicit-function-declaration] initFaces(faces, numfaces, view); ^ ./zbuf2fastcap.c:111:3: warning: implicit declaration of function 'getAdjGraph' is invalid in C99 [-Wimplicit-function-declaration] getAdjGraph(faces, numfaces, view, rhs, normal); ^ ./zbuf2fastcap.c:120:3: warning: implicit declaration of function 'image' is invalid in C99 [-Wimplicit-function-declaration] image(sfaces, numfaces, lines, numlines, normal, rhs, view); ^ ./zbuf2fastcap.c:121:3: warning: implicit declaration of function 'flatten' is invalid in C99 [-Wimplicit-function-declaration] flatten(sfaces, numfaces, lines, numlines, rhs, rotation, normal, view); ^ ./zbuf2fastcap.c:122:3: warning: implicit declaration of function 'makePos' is invalid in C99 [-Wimplicit-function-declaration] makePos(sfaces, numfaces, lines, numlines); ^ ./zbuf2fastcap.c:123:3: warning: implicit declaration of function 'scale2d' is invalid in C99 [-Wimplicit-function-declaration] scale2d(sfaces, numfaces, lines, numlines, scale, moffset); ^ ./zbuf2fastcap.c:125:5: warning: implicit declaration of function 'dumpCycles' is invalid in C99 [-Wimplicit-function-declaration] dumpCycles(sfaces, numfaces, stdout); /* DANGER - doesnt work (?) */ ^ ./zbuf2fastcap.c:126:5: warning: implicit declaration of function 'dumpFaceText' is invalid in C99 [-Wimplicit-function-declaration] dumpFaceText(sfaces, numfaces, stdout); ^ ./zbuf2fastcap.c:134:5: warning: implicit declaration of function 'dumpPs' is invalid in C99 [-Wimplicit-function-declaration] dumpPs(sfaces, numfaces, lines, numlines, fp, argvals, argcnt,use_density); ^ 9 warnings generated. clang -O2 -DFOUR -c ./zbufProj.c ./zbufProj.c:431:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(avg, 3, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./zbufProj.c:431:3: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(avg, 3, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./zbufProj.c:431:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(avg, 3, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./zbufProj.c:431:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./zbufProj.c:431:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(avg, 3, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ 5 warnings generated. clang -O2 -DFOUR -c ./zbufSort.c ./zbufSort.c:531:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cproj, 2, double **, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./zbufSort.c:531:5: warning: cast to 'double ***' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cproj, 2, double **, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./zbufSort.c:531:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cproj, 2, double **, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./zbufSort.c:531:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./zbufSort.c:531:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cproj, 2, double **, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./zbufSort.c:533:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cproj[k], MAXSIDES, double *, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./zbufSort.c:533:7: warning: cast to 'double **' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cproj[k], MAXSIDES, double *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./zbufSort.c:533:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cproj[k], MAXSIDES, double *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./zbufSort.c:533:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./zbufSort.c:533:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cproj[k], MAXSIDES, double *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./zbufSort.c:535:2: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(cproj[k][i], 3, double, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./zbufSort.c:535:2: warning: cast to 'double *' from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(cproj[k][i], 3, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./zbufSort.c:535:2: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(cproj[k][i], 3, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./zbufSort.c:535:2: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./zbufSort.c:535:2: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(cproj[k][i], 3, double, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./zbufSort.c:753:5: warning: implicit declaration of function 'dump_face' is invalid in C99 [-Wimplicit-function-declaration] dump_face(stderr, fac); ^ ./zbufSort.c:755:5: warning: implicit declaration of function 'dumpCorners' is invalid in C99 [-Wimplicit-function-declaration] dumpCorners(stderr, cproj[0], fac->numsides, 3); ^ ./zbufSort.c:1029:3: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(rfaces, numfaces, face *, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./zbufSort.c:1029:3: warning: cast to 'face **' (aka 'struct face **') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(rfaces, numfaces, face *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./zbufSort.c:1029:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(rfaces, numfaces, face *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./zbufSort.c:1029:3: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./zbufSort.c:1029:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(rfaces, numfaces, face *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./zbufSort.c:1061:7: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(faces[f]->behind, numfaces, face *, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./zbufSort.c:1061:7: warning: cast to 'face **' (aka 'struct face **') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(faces[f]->behind, numfaces, face *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./zbufSort.c:1061:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(faces[f]->behind, numfaces, face *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./zbufSort.c:1061:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./zbufSort.c:1061:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(faces[f]->behind, numfaces, face *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./zbufSort.c:1083:5: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] CALLOC(behind, numfaces, face *, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./zbufSort.c:1083:5: warning: cast to 'face **' (aka 'struct face **') from smaller integer type 'int' [-Wint-to-pointer-cast] CALLOC(behind, numfaces, face *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./zbufSort.c:1083:5: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] CALLOC(behind, numfaces, face *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./zbufSort.c:1083:5: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./zbufSort.c:1083:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] CALLOC(behind, numfaces, face *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ ./zbufSort.c:1090:39: warning: too few arguments in call to 'is1stFaceDeeper' if(is1stFaceDeeper(fpcur, fpchk, view) == TRUE) { ~~~~~~~~~~~~~~~ ^ ./zbufSort.c:1096:25: warning: implicit declaration of function 'ualloc' is invalid in C99 [-Wimplicit-function-declaration] if(numbehind > 0) CALLOC(fpcur->behind, numbehind, face *, ON, AMSC); ^ ./mulGlobal.h:118:29: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^ ./mulGlobal.h:76:28: note: expanded from macro 'CALCORE' #define CALCORE(NUM, TYPE) ualloc((unsigned)(NUM)*sizeof(TYPE)) ^ ./zbufSort.c:1096:25: warning: cast to 'face **' (aka 'struct face **') from smaller integer type 'int' [-Wint-to-pointer-cast] if(numbehind > 0) CALLOC(fpcur->behind, numbehind, face *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:118:22: note: expanded from macro 'CALLOC' else if(((PNTR)=(TYPE*)CALCORE(NUM, TYPE))==NULL) { \ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./zbufSort.c:1096:25: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] if(numbehind > 0) CALLOC(fpcur->behind, numbehind, face *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:123:8: note: expanded from macro 'CALLOC' (NUM)*sizeof(TYPE)); \ ^~~~~~~~~~~~~~~~~~ ./zbufSort.c:1096:25: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^ ./mulGlobal.h:109:18: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^ ./zbufSort.c:1096:25: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] if(numbehind > 0) CALLOC(fpcur->behind, numbehind, face *, ON, AMSC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mulGlobal.h:124:8: note: expanded from macro 'CALLOC' DUMPALLOCSIZ; \ ^~~~~~~~~~~~ ./mulGlobal.h:109:3: note: expanded from macro 'DUMPALLOCSIZ' memcount/1024, sbrk(0)); \ ^~~~~~~~~~~~~ 38 warnings generated. clang -o temp.out -O2 -DFOUR ./mulGlobal.o ./mulSetup.o ./mulMats.o ./mulDo.o ./mulDisplay.o ./mulMulti.o ./mulLocal.o ./direct.o ./calcp.o ./fastcap.o ./blkDirect.o ./uglyalloc.o ./patran.o ./quickif.o ./electric.o ./input.o ./psMatDisplay.o ./capsolve.o ./savemat_mod.o ./zbufInOut.o ./zbuf2fastcap.o ./zbufProj.o ./zbufSort.o -lm mv temp.out ../bin/fastcap cd src ; /usr/bin/make cubegen clang -O2 -DFOUR -c ./cubegen.c ./cubegen.c:61:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^ ./cubegen.c:192:14: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] else if(!strcmp(&(argv[i][1]),"pfl")) { ^ ./cubegen.c:192:14: note: include the header or explicitly provide a declaration for 'strcmp' ./cubegen.c:223:15: warning: data argument not used by format string [-Wformat-extra-args] argv[0], DEFNCL, DEFEFR); ^ ./cubegen.c:41:16: note: expanded from macro 'DEFNCL' #define DEFNCL 3 /* default #cells on short side of faces */ ^ ./cubegen.c:243:5: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(0); ^ ./cubegen.c:243:5: note: include the header or explicitly provide a declaration for 'exit' ./cubegen.c:292:18: warning: implicit declaration of function 'disRect' is invalid in C99 [-Wimplicit-function-declaration] npanels += disRect(fp, 1, edgefrac, left_cells, no_discr, ^ ./cubegen.c:301:18: warning: implicit declaration of function 'disRect' is invalid in C99 [-Wimplicit-function-declaration] npanels += disRect(fp, 1, edgefrac, right_cells, no_discr, ^ ./cubegen.c:310:18: warning: implicit declaration of function 'disRect' is invalid in C99 [-Wimplicit-function-declaration] npanels += disRect(fp, 1, edgefrac, right_cells, no_discr, ^ ./cubegen.c:319:18: warning: implicit declaration of function 'disRect' is invalid in C99 [-Wimplicit-function-declaration] npanels += disRect(fp, 1, edgefrac, left_cells, no_discr, ^ ./cubegen.c:329:16: warning: implicit declaration of function 'disRect' is invalid in C99 [-Wimplicit-function-declaration] npanels += disRect(fp, 1, edgefrac, top_cells, no_discr, ^ ./cubegen.c:338:16: warning: implicit declaration of function 'disRect' is invalid in C99 [-Wimplicit-function-declaration] npanels += disRect(fp, 1, edgefrac, top_cells, no_discr, ^ 10 warnings generated. clang -O2 -DFOUR -c ./disrect.c ./disrect.c:182:5: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(0); ^ ./disrect.c:182:5: note: include the header or explicitly provide a declaration for 'exit' ./disrect.c:196:5: warning: implicit declaration of function 'getEpsBnds' is invalid in C99 [-Wimplicit-function-declaration] getEpsBnds(&uepsilon, &lepsilon); ^ 2 warnings generated. clang -O2 -DFOUR -c ./epsilon.c clang -o temp.out -O2 -DFOUR ./cubegen.o ./disrect.o ./epsilon.o -lm mv temp.out ../bin/cubegen cd src ; /usr/bin/make capgen clang -O2 -DFOUR -c ./pltcapgen.c ./pltcapgen.c:52:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^ ./pltcapgen.c:159:5: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(0); ^ ./pltcapgen.c:159:5: note: include the header or explicitly provide a declaration for 'exit' ./pltcapgen.c:180:13: warning: implicit declaration of function 'disRect' is invalid in C99 [-Wimplicit-function-declaration] npanels += disRect(fp, i+numplt, edgefrac, ncells, no_disc, ^ ./pltcapgen.c:189:13: warning: implicit declaration of function 'disRect' is invalid in C99 [-Wimplicit-function-declaration] npanels += disRect(fp, cond++, edgefrac, ncells, no_disc, ^ ./pltcapgen.c:204:18: warning: implicit declaration of function 'disRect' is invalid in C99 [-Wimplicit-function-declaration] npanels += disRect(fp, i+1, edgefrac, ncells, no_disc, ^ 5 warnings generated. clang -o temp.out -O2 -DFOUR ./pltcapgen.o ./disrect.o ./epsilon.o -lm mv temp.out ../bin/capgen cd src ; /usr/bin/make busgen clang -O2 -DFOUR -c ./busgen.c ./busgen.c:120:13: warning: implicit declaration of function 'disRect' is invalid in C99 [-Wimplicit-function-declaration] npanels += disRect(fp, cond, edgefrac, ncells, no_disc, ^ ./busgen.c:128:13: warning: implicit declaration of function 'disRect' is invalid in C99 [-Wimplicit-function-declaration] npanels += disRect(fp, cond, edgefrac, ncells, no_disc, ^ ./busgen.c:153:18: warning: implicit declaration of function 'disRect' is invalid in C99 [-Wimplicit-function-declaration] npanels += disRect(fp, cond, edgefrac, ncells, no_disc, ^ ./busgen.c:163:18: warning: implicit declaration of function 'disRect' is invalid in C99 [-Wimplicit-function-declaration] npanels += disRect(fp, cond, edgefrac, ncells, no_disc, ^ ./busgen.c:180:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^ ./busgen.c:295:15: warning: data argument not used by format string [-Wformat-extra-args] argv[0], DEFNWI, DEFWID, DEFNCL, DEFEFR); ^ ./busgen.c:42:16: note: expanded from macro 'DEFNWI' #define DEFNWI 2 /* default problem is DEFNWI X DEFNWI bus xg */ ^ ./busgen.c:305:5: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(0); ^ ./busgen.c:305:5: note: include the header or explicitly provide a declaration for 'exit' 7 warnings generated. clang -o temp.out -O2 -DFOUR ./busgen.o ./disrect.o ./epsilon.o -lm mv temp.out ../bin/busgen cd src ; /usr/bin/make pipedgen clang -O2 -DFOUR -c ./pipedgen.c ./pipedgen.c:60:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^ ./pipedgen.c:96:14: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] else if(!strcmp(argv[i], "-cr")) { ^ ./pipedgen.c:96:14: note: include the header or explicitly provide a declaration for 'strcmp' ./pipedgen.c:266:5: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(0); ^ ./pipedgen.c:266:5: note: include the header or explicitly provide a declaration for 'exit' ./pipedgen.c:301:18: warning: implicit declaration of function 'disRect' is invalid in C99 [-Wimplicit-function-declaration] npanels += disRect(fp, 1, edgefrac, left_cells, no_discr, ^ ./pipedgen.c:310:18: warning: implicit declaration of function 'disRect' is invalid in C99 [-Wimplicit-function-declaration] npanels += disRect(fp, 1, edgefrac, right_cells, no_discr, ^ ./pipedgen.c:319:18: warning: implicit declaration of function 'disRect' is invalid in C99 [-Wimplicit-function-declaration] npanels += disRect(fp, 1, edgefrac, right_cells, no_discr, ^ ./pipedgen.c:329:18: warning: implicit declaration of function 'disRect' is invalid in C99 [-Wimplicit-function-declaration] npanels += disRect(fp, 1, edgefrac, left_cells, no_discr, ^ ./pipedgen.c:340:16: warning: implicit declaration of function 'disRect' is invalid in C99 [-Wimplicit-function-declaration] npanels += disRect(fp, 1, edgefrac, top_cells, no_discr, ^ ./pipedgen.c:350:16: warning: implicit declaration of function 'disRect' is invalid in C99 [-Wimplicit-function-declaration] npanels += disRect(fp, 1, edgefrac, top_cells, no_discr, ^ 9 warnings generated. clang -o temp.out -O2 -DFOUR ./pipedgen.o ./disrect.o ./epsilon.o -lm mv temp.out ../bin/pipedgen cd src ; /usr/bin/make pyragen clang -O2 -DFOUR -c ./teragen.c ./teragen.c:61:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^ ./teragen.c:178:14: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] else if(!strcmp(&(argv[i][1]), "pfl")) { ^ ./teragen.c:178:14: note: include the header or explicitly provide a declaration for 'strcmp' ./teragen.c:225:5: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(0); ^ ./teragen.c:225:5: note: include the header or explicitly provide a declaration for 'exit' ./teragen.c:272:18: warning: implicit declaration of function 'disTri' is invalid in C99 [-Wimplicit-function-declaration] npanels += disTri(fp, 1, edgefrac, right_cells, no_discr, ^ ./teragen.c:280:18: warning: implicit declaration of function 'disTri' is invalid in C99 [-Wimplicit-function-declaration] npanels += disTri(fp, 1, edgefrac, left_cells, no_discr, ^ ./teragen.c:294:18: warning: implicit declaration of function 'disTri' is invalid in C99 [-Wimplicit-function-declaration] npanels += disTri(fp, 1, edgefrac, right_cells, no_discr, ^ ./teragen.c:303:18: warning: implicit declaration of function 'disTri' is invalid in C99 [-Wimplicit-function-declaration] npanels += disTri(fp, 1, edgefrac, left_cells, no_discr, ^ ./teragen.c:313:16: warning: implicit declaration of function 'disRect' is invalid in C99 [-Wimplicit-function-declaration] npanels += disRect(fp, 1, edgefrac, top_cells, no_discr, ^ 8 warnings generated. clang -O2 -DFOUR -c ./distri.c ./distri.c:94:5: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(0); ^ ./distri.c:94:5: note: include the header or explicitly provide a declaration for 'exit' ./distri.c:110:63: warning: data argument not used by format string [-Wformat-extra-args] fprintf(stderr, "\ndisTri: ncells = 2 not implemented\n", ncells); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ./distri.c:117:5: warning: implicit declaration of function 'getEpsBnds' is invalid in C99 [-Wimplicit-function-declaration] getEpsBnds(&uepsilon, &lepsilon); ^ 3 warnings generated. clang -o temp.out -O2 -DFOUR ./teragen.o ./disrect.o ./distri.o ./epsilon.o -lm mv temp.out ../bin/pyragen cd /data/scratch/cad/fastcap/work/doc && /usr/bin/env BIBTEX=/usr/pkg/bin/bibtex LATEX=/usr/pkg/bin/latex USETOOLS=no CC=clang CFLAGS=-O2 CPPFLAGS= CXX=clang++ CXXFLAGS=-O2 COMPILER_RPATH_FLAG=-Wl,-R F77=gfortran FC=gfortran FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-Wl,-R/usr/pkg/lib LINKER_RPATH_FLAG=-R PATH=/data/scratch/cad/fastcap/work/.cwrapper/bin:/data/scratch/cad/fastcap/work/.buildlink/bin:/data/scratch/cad/fastcap/work/.tools/bin:/usr/pkg/bin:/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin:/usr/pkg/bin:/usr/pkg/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc CXXCPP=clang-cpp HOME=/data/scratch/cad/fastcap/work/.home CWRAPPERS_CONFIG_DIR=/data/scratch/cad/fastcap/work/.cwrapper/config CPP=clang-cpp LOCALBASE=/usr/pkg X11BASE=/usr/pkg PKGMANDIR=man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ pbulkXXX\ -g\ users\ -m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ pbulkXXX\ -g\ users\ -m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ pbulkXXX\ -g\ users\ -m\ 755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ pbulkXXX\ -g\ users\ -m\ 644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ pbulkXXX\ -g\ users\ -m\ 644 BSD_INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ pbulkXXX\ -g\ users\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ pbulkXXX\ -g\ users\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\ pbulkXXX\ -g\ users\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ pbulkXXX\ -g\ users\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ pbulkXXX\ -g\ users\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ pbulkXXX\ -g\ users\ -m\ 2555 BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ pbulkXXX\ -g\ users\ -m\ 664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ pbulkXXX\ -g\ users\ -m\ 775 INSTALL_INFO= MAKEINFO=/data/scratch/cad/fastcap/work/.tools/bin/makeinfo FLEX= BISON= PKG_CONFIG= PKG_CONFIG_LIBDIR=/data/scratch/cad/fastcap/work/.buildlink/lib/pkgconfig:/data/scratch/cad/fastcap/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/data/scratch/cad/fastcap/work/.pkg-config.log PKG_CONFIG_PATH= CWRAPPERS_CONFIG_DIR=/data/scratch/cad/fastcap/work/.cwrapper/config /usr/bin/make manual cd . ; pwd > temp_ ; awk '{s = sprintf("\\\\newcommand{\\\\topdir}{%s}", $1)} END {printf "{if($0 ~ /\\\\newcommand{\\\\topdir}/) print \"%s\" ; else print $0 }", s }' temp_ > temp__ ; awk -f temp__ ug.tex > temp_ ; mv temp_ ug.tex ; /bin/rm temp__ cd . ; /usr/pkg/bin/latex ug ; /usr/pkg/bin/latex ug ; /usr/pkg/bin/latex ug This is pdfTeX, Version 3.14159265-2.6-1.40.21 (Web2C 2020) (preloaded format=latex) restricted \write18 enabled. entering extended mode (./ug.tex LaTeX2e <2020-02-02> patch level 5 (/usr/pkg/share/texmf-dist/tex/latex/base/latex209.def Entering LaTeX 2.09 COMPATIBILITY MODE ************************************************************* !!WARNING!! !!WARNING!! !!WARNING!! !!WARNING!! This mode attempts to provide an emulation of the LaTeX 2.09 author environment so that OLD documents can be successfully processed. It should NOT be used for NEW documents! New documents should use Standard LaTeX conventions and start with the \documentclass command. Compatibility mode is UNLIKELY TO WORK with LaTeX 2.09 style files that change any internal macros, especially not with those that change the FONT SELECTION or OUTPUT ROUTINES. Therefore such style files MUST BE UPDATED to use Current Standard LaTeX: LaTeX2e. If you suspect that you may be using such a style file, which is probably very, very old by now, then you should attempt to get it updated by sending a copy of this error message to the author of that file. ************************************************************* (/usr/pkg/share/texmf-dist/tex/latex/base/tracefnt.sty) (/usr/pkg/share/texmf-dist/tex/latex/base/latexsym.sty)) (/usr/pkg/share/texmf-dist/tex/latex/base/article.cls Document Class: article 2019/12/20 v1.4l Standard LaTeX document class (/usr/pkg/share/texmf-dist/tex/latex/base/size12.clo)) (./psfig.sty psfig: version 1.1 (MC-TeX) ) No file ug.aux. [0] (/usr/pkg/share/texmf-dist/tex/latex/base/ulasy.fd) [0] (./ug-license.tex kpathsea: Running mktextfm tcrm1200 /usr/pkg/share/texmf-dist/web2c/mktexnam: Could not map source abbreviation for tcrm1200. /usr/pkg/share/texmf-dist/web2c/mktexnam: Need to update ? mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input tcrm1200 This is METAFONT, Version 2.7182818 (Web2C 2020) (preloaded base=mf) kpathsea: Running mktexmf tcrm1200 ! I can't find file `tcrm1200'. <*> ...four; mag:=1; ; nonstopmode; input tcrm1200 Please type another input file name ! Emergency stop. <*> ...four; mag:=1; ; nonstopmode; input tcrm1200 Transcript written on mfput.log. grep: tcrm1200.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input tcrm1200' failed to make tcrm1200.tfm. kpathsea: Appending font creation commands to missfont.log. ! Font TS1/cmr/m/n/12=tcrm1200 at 12.0pt not loadable: Metric (TFM) file not fo und. relax l.3 \noindent Copyright \copyright \ 1992 Massachusetts Institute of Technology, ? ! Emergency stop. relax l.3 \noindent Copyright \copyright \ 1992 Massachusetts Institute of Technology, Output written on ug.dvi (2 pages, 1048 bytes). Transcript written on ug.log. This is pdfTeX, Version 3.14159265-2.6-1.40.21 (Web2C 2020) (preloaded format=latex) restricted \write18 enabled. entering extended mode (./ug.tex LaTeX2e <2020-02-02> patch level 5 (/usr/pkg/share/texmf-dist/tex/latex/base/latex209.def Entering LaTeX 2.09 COMPATIBILITY MODE ************************************************************* !!WARNING!! !!WARNING!! !!WARNING!! !!WARNING!! This mode attempts to provide an emulation of the LaTeX 2.09 author environment so that OLD documents can be successfully processed. It should NOT be used for NEW documents! New documents should use Standard LaTeX conventions and start with the \documentclass command. Compatibility mode is UNLIKELY TO WORK with LaTeX 2.09 style files that change any internal macros, especially not with those that change the FONT SELECTION or OUTPUT ROUTINES. Therefore such style files MUST BE UPDATED to use Current Standard LaTeX: LaTeX2e. If you suspect that you may be using such a style file, which is probably very, very old by now, then you should attempt to get it updated by sending a copy of this error message to the author of that file. ************************************************************* (/usr/pkg/share/texmf-dist/tex/latex/base/tracefnt.sty) (/usr/pkg/share/texmf-dist/tex/latex/base/latexsym.sty)) (/usr/pkg/share/texmf-dist/tex/latex/base/article.cls Document Class: article 2019/12/20 v1.4l Standard LaTeX document class (/usr/pkg/share/texmf-dist/tex/latex/base/size12.clo)) (./psfig.sty psfig: version 1.1 (MC-TeX) ) (./ug.aux) [0] (/usr/pkg/share/texmf-dist/tex/latex/base/ulasy.fd) [0] (./ug-license.tex kpathsea: Running mktextfm tcrm1200 /usr/pkg/share/texmf-dist/web2c/mktexnam: Could not map source abbreviation for tcrm1200. /usr/pkg/share/texmf-dist/web2c/mktexnam: Need to update ? mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input tcrm1200 This is METAFONT, Version 2.7182818 (Web2C 2020) (preloaded base=mf) kpathsea: Running mktexmf tcrm1200 ! I can't find file `tcrm1200'. <*> ...four; mag:=1; ; nonstopmode; input tcrm1200 Please type another input file name ! Emergency stop. <*> ...four; mag:=1; ; nonstopmode; input tcrm1200 Transcript written on mfput.log. grep: tcrm1200.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input tcrm1200' failed to make tcrm1200.tfm. kpathsea: Appending font creation commands to missfont.log. ! Font TS1/cmr/m/n/12=tcrm1200 at 12.0pt not loadable: Metric (TFM) file not fo und. relax l.3 \noindent Copyright \copyright \ 1992 Massachusetts Institute of Technology, ? ! Emergency stop. relax l.3 \noindent Copyright \copyright \ 1992 Massachusetts Institute of Technology, Output written on ug.dvi (2 pages, 1048 bytes). Transcript written on ug.log. This is pdfTeX, Version 3.14159265-2.6-1.40.21 (Web2C 2020) (preloaded format=latex) restricted \write18 enabled. entering extended mode (./ug.tex LaTeX2e <2020-02-02> patch level 5 (/usr/pkg/share/texmf-dist/tex/latex/base/latex209.def Entering LaTeX 2.09 COMPATIBILITY MODE ************************************************************* !!WARNING!! !!WARNING!! !!WARNING!! !!WARNING!! This mode attempts to provide an emulation of the LaTeX 2.09 author environment so that OLD documents can be successfully processed. It should NOT be used for NEW documents! New documents should use Standard LaTeX conventions and start with the \documentclass command. Compatibility mode is UNLIKELY TO WORK with LaTeX 2.09 style files that change any internal macros, especially not with those that change the FONT SELECTION or OUTPUT ROUTINES. Therefore such style files MUST BE UPDATED to use Current Standard LaTeX: LaTeX2e. If you suspect that you may be using such a style file, which is probably very, very old by now, then you should attempt to get it updated by sending a copy of this error message to the author of that file. ************************************************************* (/usr/pkg/share/texmf-dist/tex/latex/base/tracefnt.sty) (/usr/pkg/share/texmf-dist/tex/latex/base/latexsym.sty)) (/usr/pkg/share/texmf-dist/tex/latex/base/article.cls Document Class: article 2019/12/20 v1.4l Standard LaTeX document class (/usr/pkg/share/texmf-dist/tex/latex/base/size12.clo)) (./psfig.sty psfig: version 1.1 (MC-TeX) ) (./ug.aux) [0] (/usr/pkg/share/texmf-dist/tex/latex/base/ulasy.fd) [0] (./ug-license.tex kpathsea: Running mktextfm tcrm1200 /usr/pkg/share/texmf-dist/web2c/mktexnam: Could not map source abbreviation for tcrm1200. /usr/pkg/share/texmf-dist/web2c/mktexnam: Need to update ? mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input tcrm1200 This is METAFONT, Version 2.7182818 (Web2C 2020) (preloaded base=mf) kpathsea: Running mktexmf tcrm1200 ! I can't find file `tcrm1200'. <*> ...four; mag:=1; ; nonstopmode; input tcrm1200 Please type another input file name ! Emergency stop. <*> ...four; mag:=1; ; nonstopmode; input tcrm1200 Transcript written on mfput.log. grep: tcrm1200.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input tcrm1200' failed to make tcrm1200.tfm. kpathsea: Appending font creation commands to missfont.log. ! Font TS1/cmr/m/n/12=tcrm1200 at 12.0pt not loadable: Metric (TFM) file not fo und. relax l.3 \noindent Copyright \copyright \ 1992 Massachusetts Institute of Technology, ? ! Emergency stop. relax l.3 \noindent Copyright \copyright \ 1992 Massachusetts Institute of Technology, Output written on ug.dvi (2 pages, 1048 bytes). Transcript written on ug.log. *** Error code 1 Stop. make: stopped in /data/scratch/cad/fastcap/work/doc *** Error code 1 Stop. make[1]: stopped in /data/pkgsrc/cad/fastcap *** Error code 1 Stop. make: stopped in /data/pkgsrc/cad/fastcap