+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/rexx-regina-3.0.1nb1/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/rexx-regina-3.0.1nb1/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for rexx-regina-3.0.1nb1 gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o funcs.o -c ./funcs.c ./funcs.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: funcs.c,v 1.16 2002/03/23 01:42:54 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o builtin.o -c ./builtin.c ./builtin.c: In function '__regina_std_subword': ./builtin.c:550:7: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 550 | for ( ; (cptrvalue) | ^~ In file included from ./rexx.h:219, from ./builtin.c:24: ./strings.h:33:9: note: 'value' declared here 33 | char value[4] ; | ^~~~~ ./builtin.c:1032:29: warning: the comparison will always evaluate as 'true' for the address of 'value' will never be NULL [-Waddress] 1032 | if (str_suppformat && str_suppformat->value) | ^~ ./strings.h:33:9: note: 'value' declared here 33 | char value[4] ; | ^~~~~ ./builtin.c: In function '__regina_std_date': ./builtin.c:1212:23: warning: the comparison will always evaluate as 'true' for the address of 'value' will never be NULL [-Waddress] 1212 | if (suppdate && suppdate->value) | ^~ ./strings.h:33:9: note: 'value' declared here 33 | char value[4] ; | ^~~~~ ./builtin.c:1216:29: warning: the comparison will always evaluate as 'true' for the address of 'value' will never be NULL [-Waddress] 1216 | if (str_suppformat && str_suppformat->value) | ^~ ./strings.h:33:9: note: 'value' declared here 33 | char value[4] ; | ^~~~~ ./builtin.c: In function '__regina_std_address': ./builtin.c:1374:9: warning: variable 'opt' set but not used [-Wunused-but-set-variable] 1374 | char opt = 'N'; | ^~~ ./builtin.c: At top level: ./builtin.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: builtin.c,v 1.24 2002/04/01 05:36:50 mark Exp $"; | ^~~~~ ./builtin.c: In function '__regina_std_xrange': ./builtin.c:458:24: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 458 | result->value[i] = (char) start++ ; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ ./builtin.c: In function '__regina_std_overlay': ./builtin.c:907:39: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 907 | for (;k++value[j++]=padch) if (oldlen>i) i++ ; | ~~~~~~~~~~~~~~~~~~^~~~~~ ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ ./builtin.c:907:39: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 907 | for (;k++value[j++]=padch) if (oldlen>i) i++ ; | ~~~~~~~~~~~~~~~~~~^~~~~~ ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ ./builtin.c: In function '__regina_std_time': ./builtin.c:1115:37: warning: '%s' directive writing up to 6 bytes into a region of size between 0 and 3 [-Wformat-overflow=] 1115 | sprintf(answer->value, "%ld%s", | ^~ ./builtin.c:1115:10: note: 'sprintf' output between 2 and 27 bytes into a destination of size 4 1115 | sprintf(answer->value, "%ld%s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1116 | timediff,(timediff)?"000000":""); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c:1104:39: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 0 and 1 [-Wformat-overflow=] 1104 | sprintf(answer->value, "%02d:%02d:%02d", tmdata.tm_hour, | ^~~~ ./builtin.c:1104:10: note: 'sprintf' output between 9 and 36 bytes into a destination of size 4 1104 | sprintf(answer->value, "%02d:%02d:%02d", tmdata.tm_hour, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1105 | tmdata.tm_min, tmdata.tm_sec ) ; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c:1093:39: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 0 and 1 [-Wformat-overflow=] 1093 | sprintf(answer->value, "%02d:%02d:%02d.%06ld", tmdata.tm_hour, | ^~~~ ./builtin.c:1093:10: note: 'sprintf' output between 16 and 57 bytes into a destination of size 4 1093 | sprintf(answer->value, "%02d:%02d:%02d.%06ld", tmdata.tm_hour, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1094 | tmdata.tm_min, tmdata.tm_sec, unow ) ; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c:1088:34: warning: '%.06f' directive writing between 3 and 317 bytes into a region of size 4 [-Wformat-overflow=] 1088 | sprintf(answer->value, "%.06f", cpu_time()) ; | ^~~~~ ./builtin.c:1088:33: note: assuming directive output of 8 bytes 1088 | sprintf(answer->value, "%.06f", cpu_time()) ; | ^~~~~~~ ./builtin.c:1088:10: note: 'sprintf' output between 4 and 318 bytes into a destination of size 4 1088 | sprintf(answer->value, "%.06f", cpu_time()) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c:1076:40: warning: '%06lu' directive writing between 6 and 20 bytes into a region of size between 0 and 2 [-Wformat-overflow=] 1076 | sprintf(answer->value,"%ld.%06lu", (long)sec, (unsigned long)usec ) ; | ^~~~~ ./builtin.c:1076:35: note: using the range [0, 18446744073709551615] for directive argument 1076 | sprintf(answer->value,"%ld.%06lu", (long)sec, (unsigned long)usec ) ; | ^~~~~~~~~~~ ./builtin.c:1076:13: note: 'sprintf' output between 9 and 42 bytes into a destination of size 4 1076 | sprintf(answer->value,"%ld.%06lu", (long)sec, (unsigned long)usec ) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c:1078:37: warning: '%06lu' directive writing between 6 and 20 bytes into a region of size 3 [-Wformat-overflow=] 1078 | sprintf(answer->value,".%06lu", (unsigned long)usec ) ; | ^~~~~ ./builtin.c:1078:35: note: using the range [0, 18446744073709551615] for directive argument 1078 | sprintf(answer->value,".%06lu", (unsigned long)usec ) ; | ^~~~~~~~ ./builtin.c:1078:13: note: 'sprintf' output between 8 and 22 bytes into a destination of size 4 1078 | sprintf(answer->value,".%06lu", (unsigned long)usec ) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c:1047:37: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 0 and 2 [-Wformat-overflow=] 1047 | sprintf(answer->value, "%d:%02d%s", hour, tmdata.tm_min, ampm) ; | ^~~~ ./builtin.c:1047:10: note: 'sprintf' output between 7 and 18 bytes into a destination of size 4 1047 | sprintf(answer->value, "%d:%02d%s", hour, tmdata.tm_min, ampm) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c: In function '__regina_std_date': ./builtin.c:1141:30: warning: '%02d' directive writing between 2 and 11 bytes into a region of size 4 [-Wformat-overflow=] 1141 | static const char *fmt = "%02d/%02d/%02d" ; | ^~~~ ./builtin.c:1141:29: note: directive argument in the range [-2147483647, 2147483647] 1141 | static const char *fmt = "%02d/%02d/%02d" ; | ^~~~~~~~~~~~~~~~ ./builtin.c:1141:29: note: directive argument in the range [-99, 99] ./builtin.c:1284:10: note: 'sprintf' output between 9 and 28 bytes into a destination of size 4 1284 | sprintf(answer->value, fmt, tmdata.tm_mon+1, tmdata.tm_mday, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1285 | tmdata.tm_year%100 ) ; | ~~~~~~~~~~~~~~~~~~~~ ./builtin.c:1142:34: warning: '%02d' directive writing between 2 and 11 bytes into a region of size 0 [-Wformat-overflow=] 1142 | static const char *iso = "%04d%02d%02d" ; | ^~~~ ./builtin.c:1142:29: note: directive argument in the range [-2147483647, 2147483647] 1142 | static const char *iso = "%04d%02d%02d" ; | ^~~~~~~~~~~~~~ ./builtin.c:1272:10: note: 'sprintf' output between 9 and 34 bytes into a destination of size 4 1272 | sprintf(answer->value, iso, tmdata.tm_year, tmdata.tm_mon+1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1273 | tmdata.tm_mday) ; | ~~~~~~~~~~~~~~~ ./builtin.c:1141:35: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 0 and 1 [-Wformat-overflow=] 1141 | static const char *fmt = "%02d/%02d/%02d" ; | ^~~~ ./builtin.c:1141:29: note: directive argument in the range [-2147483647, 2147483647] 1141 | static const char *fmt = "%02d/%02d/%02d" ; | ^~~~~~~~~~~~~~~~ ./builtin.c:1266:10: note: 'sprintf' output between 9 and 28 bytes into a destination of size 4 1266 | sprintf(answer->value, fmt, tmdata.tm_year%100, tmdata.tm_mon+1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1267 | tmdata.tm_mday); | ~~~~~~~~~~~~~~~ ./builtin.c:1260:40: warning: '%c' directive writing 1 byte into a region of size 0 [-Wformat-overflow=] 1260 | sprintf(answer->value,"%d %c%c%c %4d", tmdata.tm_mday, chptr[0], chptr[1], | ^~ ./builtin.c:1260:10: note: 'sprintf' output between 11 and 28 bytes into a destination of size 4 1260 | sprintf(answer->value,"%d %c%c%c %4d", tmdata.tm_mday, chptr[0], chptr[1], | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1261 | chptr[2], tmdata.tm_year) ; | ~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c:1141:35: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 0 and 1 [-Wformat-overflow=] 1141 | static const char *fmt = "%02d/%02d/%02d" ; | ^~~~ ./builtin.c:1141:29: note: directive argument in the range [-2147483647, 2147483647] 1141 | static const char *fmt = "%02d/%02d/%02d" ; | ^~~~~~~~~~~~~~~~ ./builtin.c:1141:29: note: directive argument in the range [-99, 99] ./builtin.c:1247:10: note: 'sprintf' output between 9 and 28 bytes into a destination of size 4 1247 | sprintf(answer->value, fmt, tmdata.tm_mday, tmdata.tm_mon+1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1248 | tmdata.tm_year%100) ; | ~~~~~~~~~~~~~~~~~~~ ./builtin.c:1242:34: warning: '%d' directive writing between 1 and 11 bytes into a region of size 4 [-Wformat-overflow=] 1242 | sprintf(answer->value, "%d", tmdata.tm_yday + 1) ; | ^~ ./builtin.c:1242:33: note: directive argument in the range [-2147483647, 2147483647] 1242 | sprintf(answer->value, "%d", tmdata.tm_yday + 1) ; | ^~~~ ./builtin.c:1242:10: note: 'sprintf' output between 2 and 12 bytes into a destination of size 4 1242 | sprintf(answer->value, "%d", tmdata.tm_yday + 1) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c:1238:33: warning: '%d' directive writing between 1 and 11 bytes into a region of size 4 [-Wformat-overflow=] 1238 | sprintf(answer->value,"%d", length-basedays((tmdata.tm_year/100)*100)+1); /* bja */ | ^~ ./builtin.c:1238:32: note: directive argument in the range [-2147483647, 2147483647] 1238 | sprintf(answer->value,"%d", length-basedays((tmdata.tm_year/100)*100)+1); /* bja */ | ^~~~ ./builtin.c:1238:10: note: 'sprintf' output between 2 and 12 bytes into a destination of size 4 1238 | sprintf(answer->value,"%d", length-basedays((tmdata.tm_year/100)*100)+1); /* bja */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c: In function '__regina_std_substr': ./builtin.c:2034:37: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 2034 | for (j=0;jvalue[j++]=(char)((Str_in(str,i))?str->value[i++]:padch)) ; | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ ./builtin.c: In function '__regina_std_max': ./builtin.c:2058:28: warning: '%G' directive writing between 1 and 13 bytes into a region of size 4 [-Wformat-overflow=] 2058 | sprintf(result->value, "%G", largest) ; | ^~ ./builtin.c:2058:27: note: assuming directive output of 12 bytes 2058 | sprintf(result->value, "%G", largest) ; | ^~~~ ./builtin.c:2058:4: note: 'sprintf' output between 2 and 14 bytes into a destination of size 4 2058 | sprintf(result->value, "%G", largest) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c: In function '__regina_std_min': ./builtin.c:2081:28: warning: '%G' directive writing between 1 and 13 bytes into a region of size 4 [-Wformat-overflow=] 2081 | sprintf(result->value, "%G", smallest) ; | ^~ ./builtin.c:2081:27: note: assuming directive output of 12 bytes 2081 | sprintf(result->value, "%G", smallest) ; | ^~~~ ./builtin.c:2081:4: note: 'sprintf' output between 2 and 14 bytes into a destination of size 4 2081 | sprintf(result->value, "%G", smallest) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o error.o -c ./error.c ./error.c: In function '__regina_exiterror': ./error.c:445:18: warning: variable 'charno' set but not used [-Wunused-but-set-variable] 445 | int lineno=0, charno=0, signtype=0 ; | ^~~~~~ ./error.c: At top level: ./error.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: error.c,v 1.32 2002/03/23 01:31:11 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o variable.o -c ./variable.c ./variable.c: In function 'kill_index': ./variable.c:143:31: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 143 | #define REPLACE_VALUE(val,p) {if(p->value) \ | ^~ ./variable.c:1034:19: note: in expansion of macro 'REPLACE_VALUE' 1034 | REPLACE_VALUE( tmpval, tttptr ) ; | ^~~~~~~~~~~~~ ./variable.c:1034:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1034 | REPLACE_VALUE( tmpval, tttptr ) ; | ^~~~~~ ./variable.c:144:31: note: in definition of macro 'REPLACE_VALUE' 144 | Free_stringTSD(p->value);p->value=val;p->guard=0;\ | ^ ./variable.c: In function 'setvalue_simple': ./variable.c:143:31: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 143 | #define REPLACE_VALUE(val,p) {if(p->value) \ | ^~ ./variable.c:1118:7: note: in expansion of macro 'REPLACE_VALUE' 1118 | REPLACE_VALUE(value,ptr) ; | ^~~~~~~~~~~~~ ./variable.c:1118:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1118 | REPLACE_VALUE(value,ptr) ; | ^~~ ./variable.c:144:31: note: in definition of macro 'REPLACE_VALUE' 144 | Free_stringTSD(p->value);p->value=val;p->guard=0;\ | ^ ./variable.c: In function 'setvalue_stem': ./variable.c:143:31: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 143 | #define REPLACE_VALUE(val,p) {if(p->value) \ | ^~ ./variable.c:1172:7: note: in expansion of macro 'REPLACE_VALUE' 1172 | REPLACE_VALUE( value, ptr ) ; | ^~~~~~~~~~~~~ ./variable.c:1172:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1172 | REPLACE_VALUE( value, ptr ) ; | ^~~ ./variable.c:144:31: note: in definition of macro 'REPLACE_VALUE' 144 | Free_stringTSD(p->value);p->value=val;p->guard=0;\ | ^ ./variable.c: In function 'setvalue_compound': ./variable.c:143:31: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 143 | #define REPLACE_VALUE(val,p) {if(p->value) \ | ^~ ./variable.c:1215:7: note: in expansion of macro 'REPLACE_VALUE' 1215 | REPLACE_VALUE(value,nptr) ; | ^~~~~~~~~~~~~ ./variable.c:1215:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1215 | REPLACE_VALUE(value,nptr) ; | ^~~~ ./variable.c:144:31: note: in definition of macro 'REPLACE_VALUE' 144 | Free_stringTSD(p->value);p->value=val;p->guard=0;\ | ^ ./variable.c: In function '__regina_setdirvalue_compound': ./variable.c:143:31: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 143 | #define REPLACE_VALUE(val,p) {if(p->value) \ | ^~ ./variable.c:1282:7: note: in expansion of macro 'REPLACE_VALUE' 1282 | REPLACE_VALUE(value,nptr) ; | ^~~~~~~~~~~~~ ./variable.c:1282:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1282 | REPLACE_VALUE(value,nptr) ; | ^~~~ ./variable.c:144:31: note: in definition of macro 'REPLACE_VALUE' 144 | Free_stringTSD(p->value);p->value=val;p->guard=0;\ | ^ ./variable.c: In function '__regina_shortcutnum': ./variable.c:2198:9: warning: variable 'ch' set but not used [-Wunused-but-set-variable] 2198 | char ch=' ' ; | ^~ ./variable.c: In function '__regina_fix_compound': ./variable.c:143:31: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 143 | #define REPLACE_VALUE(val,p) {if(p->value) \ | ^~ ./variable.c:2518:13: note: in expansion of macro 'REPLACE_VALUE' 2518 | REPLACE_VALUE( new, ptr ) | ^~~~~~~~~~~~~ ./variable.c:2518:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 2518 | REPLACE_VALUE( new, ptr ) | ^~~ ./variable.c:144:31: note: in definition of macro 'REPLACE_VALUE' 144 | Free_stringTSD(p->value);p->value=val;p->guard=0;\ | ^ ./variable.c: At top level: ./variable.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: variable.c,v 1.14 2002/01/20 08:28:56 mark Exp $"; | ^~~~~ ./variable.c: In function 'subst_index': ./variable.c:996:23: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 996 | *(cptr++) = (char) (toupper( name->value[i] )) ; | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./rexx.h:219, from ./variable.c:70: ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o interprt.o -c ./interprt.c ./interprt.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: interprt.c,v 1.20 2002/03/23 00:56:06 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o debug.o -c ./debug.c ./debug.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: debug.c,v 1.5 2002/03/23 00:39:59 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o dbgfuncs.o -c ./dbgfuncs.c ./dbgfuncs.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: dbgfuncs.c,v 1.5 2001/09/17 11:42:54 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o memory.o -c ./memory.c ./memory.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: memory.c,v 1.6 2001/09/09 10:22:50 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o parsing.o -c ./parsing.c ./parsing.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: parsing.c,v 1.3 2001/09/04 11:32:37 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o files.o -c ./files.c ./files.c: In function 'positionfile': ./files.c:2091:21: warning: variable 'old_errno' set but not used [-Wunused-but-set-variable] 2091 | int from_line=0, old_errno=0, tmp=0 ; | ^~~~~~~~~ ./files.c: In function 'calc_chars_left': ./files.c:2916:8: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses] 2916 | if (! ptr->flag & FLAG_READ) | ^~~~~~~~~~~ ./files.c: In function 'getseek': ./files.c:3649:33: warning: variable 'words' set but not used [-Wunused-but-set-variable] 3649 | int str_start=0,str_end=(-1),words; | ^~~~~ ./files.c: In function '__regina_std_chars': ./files.c:3826:9: warning: variable 'opt' set but not used [-Wunused-but-set-variable] 3826 | char opt = 'N'; | ^~~ ./files.c: At top level: ./files.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: files.c,v 1.26 2002/04/01 05:37:43 mark Exp $"; | ^~~~~ ./files.c: In function 'getseek': ./files.c:3797:31: warning: '%ld' directive writing between 1 and 11 bytes into a region of size 4 [-Wformat-overflow=] 3797 | sprintf(result->value, "%ld", pos ); | ^~~ ./files.c:3797:30: note: directive argument in the range [-2147483648, 2147483647] 3797 | sprintf(result->value, "%ld", pos ); | ^~~~~ ./files.c:3797:7: note: 'sprintf' output between 2 and 12 bytes into a destination of size 4 3797 | sprintf(result->value, "%ld", pos ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./files.c: In function 'getstatus': ./files.c:3368:41: warning: '%ld' directive writing between 1 and 20 bytes into a region of size 4 [-Wformat-overflow=] 3368 | sprintf( result->value, "%ld", pos_write + 1) ; | ^~~ ./files.c:3368:40: note: directive argument in the range [-9223372036854775807, 9223372036854775807] 3368 | sprintf( result->value, "%ld", pos_write + 1) ; | ^~~~~ ./files.c:3368:16: note: 'sprintf' output between 2 and 21 bytes into a destination of size 4 3368 | sprintf( result->value, "%ld", pos_write + 1) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./files.c:3378:41: warning: '%ld' directive writing between 1 and 11 bytes into a region of size 4 [-Wformat-overflow=] 3378 | sprintf( result->value, "%ld", pos_line ) ; | ^~~ ./files.c:3378:40: note: directive argument in the range [-2147483648, 2147483647] 3378 | sprintf( result->value, "%ld", pos_line ) ; | ^~~~~ ./files.c:3378:16: note: 'sprintf' output between 2 and 12 bytes into a destination of size 4 3378 | sprintf( result->value, "%ld", pos_line ) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./files.c:3359:41: warning: '%ld' directive writing between 1 and 20 bytes into a region of size 4 [-Wformat-overflow=] 3359 | sprintf( result->value, "%ld", pos_read + 1) ; | ^~~ ./files.c:3359:40: note: directive argument in the range [-9223372036854775807, 9223372036854775807] 3359 | sprintf( result->value, "%ld", pos_read + 1) ; | ^~~~~ ./files.c:3359:16: note: 'sprintf' output between 2 and 21 bytes into a destination of size 4 3359 | sprintf( result->value, "%ld", pos_read + 1) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./files.c:3177:30: warning: '%04d' directive writing between 4 and 11 bytes into a region of size 4 [-Wformat-overflow=] 3177 | static const char *iso = "%04d-%02d-%02d %02d:%02d:%02d" ; | ^~~~ ./files.c:3177:29: note: directive argument in the range [-2147481748, 2147483647] 3177 | static const char *iso = "%04d-%02d-%02d %02d:%02d:%02d" ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./files.c:3177:29: note: directive argument in the range [-2147483647, 2147483647] ./files.c:3348:16: note: 'sprintf' output between 20 and 72 bytes into a destination of size 4 3348 | sprintf( result->value, iso, tmdata.tm_year+1900, tmdata.tm_mon+1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3349 | tmdata.tm_mday, | ~~~~~~~~~~~~~~~ 3350 | tmdata.tm_hour, tmdata.tm_min, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3351 | tmdata.tm_sec ) ; | ~~~~~~~~~~~~~~~ ./files.c:3176:30: warning: '%02d' directive writing between 2 and 11 bytes into a region of size 4 [-Wformat-overflow=] 3176 | static const char *fmt = "%02d-%02d-%02d %02d:%02d:%02d" ; | ^~~~ ./files.c:3176:29: note: directive argument in the range [-2147483647, 2147483647] 3176 | static const char *fmt = "%02d-%02d-%02d %02d:%02d:%02d" ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./files.c:3176:29: note: directive argument in the range [-99, 99] ./files.c:3331:16: note: 'sprintf' output between 18 and 64 bytes into a destination of size 4 3331 | sprintf( result->value, fmt, tmdata.tm_mon+1, tmdata.tm_mday, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3332 | (tmdata.tm_year % 100), tmdata.tm_hour, tmdata.tm_min, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3333 | tmdata.tm_sec ) ; | ~~~~~~~~~~~~~~~ ./files.c:3238:28: warning: '%03o' directive writing 3 bytes into a region of size 0 [-Wformat-overflow=] 3238 | "%ld %ld %03o %d %s %s %ld", | ^~~~ ./files.c:3238:19: note: directive argument in the range [0, 127] 3238 | "%ld %ld %03o %d %s %s %ld", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./files.c:3238:19: note: using the range [-2147483648, 2147483647] for directive argument ./files.c:3237:16: note: 'sprintf' output 14 or more bytes into a destination of size 4 3237 | sprintf( result->value, | ^~~~~~~~~~~~~~~~~~~~~~~ 3238 | "%ld %ld %03o %d %s %s %ld", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3239 | (long)(buffer.st_dev), (long)(buffer.st_ino), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3240 | buffer.st_mode & 0x7f, buffer.st_nlink, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3241 | #if defined(VMS) || defined(MAC) || defined(OS2) || defined(DOS) || defined (__WATCOMC__) || defined(_MSC_VER) || (defined(WIN32) && defined(__IBMC__)) || defined(_AMIGA) || defined(__MINGW32__) || defined(__BORLANDC__) || defined(__EPOC32__) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3242 | "USER", "GROUP", | ~~~~~~~~~~~~~~~~ 3243 | #else | ~~~~~ 3244 | getpwuid( buffer.st_uid )->pw_name, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3245 | getgrgid( buffer.st_gid )->gr_name, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3246 | #endif | ~~~~~~ 3247 | (long)(buffer.st_size) ) ; | ~~~~~~~~~~~~~~~~~~~~~~~~ ./files.c: In function '__regina_std_stream': ./files.c:3429:18: warning: ' READ: char=' directive writing 12 bytes into a region of size 4 [-Wformat-overflow=] 3429 | " READ: char=%ld line=%d WRITE: char=%ld line=%d %s", | ~~~~^~~~~~~~ In function 'getrexxstatus', inlined from '__regina_std_stream' at ./files.c:4455:25: ./files.c:3429:13: note: using the range [-9223372036854775808, 9223372036854775807] for directive argument 3429 | " READ: char=%ld line=%d WRITE: char=%ld line=%d %s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./files.c:3429:13: note: using the range [-9223372036854775808, 9223372036854775807] for directive argument ./files.c:3428:4: note: 'sprintf' output between 52 and 111 bytes into a destination of size 4 3428 | sprintf( result->value + strlen(result->value), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3429 | " READ: char=%ld line=%d WRITE: char=%ld line=%d %s", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3430 | (long)(ptr->readpos+1), ptr->readline, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3431 | (long)(ptr->writepos+1), ptr->writeline, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3432 | (ptr->flag & FLAG_PERSIST) ? "PERSISTENT" : "TRANSIENT" ) ; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o misc.o -c ./misc.c ./misc.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: misc.c,v 1.5 2001/09/04 11:25:55 mark Exp $"; | ^~~~~ ./misc.c: In function '__regina_upcase': ./misc.c:97:27: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 97 | source->value[i] -= CHAR_OFFSET ; In file included from ./rexx.h:219, from ./misc.c:24: ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o unxfuncs.o -c ./unxfuncs.c ./unxfuncs.c: In function '__regina_unx_crypt': ./unxfuncs.c:366:13: warning: implicit declaration of function 'crypt' [-Wimplicit-function-declaration] 366 | output = crypt( key, salt ) ; | ^~~~~ ./unxfuncs.c:366:11: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 366 | output = crypt( key, salt ) ; | ^ ./unxfuncs.c: At top level: ./unxfuncs.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: unxfuncs.c,v 1.16 2002/05/11 00:48:40 mark Exp $"; | ^~~~~ ./unxfuncs.c: In function '__regina_unx_popen': ./unxfuncs.c:175:25: warning: '%d' directive writing between 1 and 10 bytes into a region of size 4 [-Wformat-overflow=] 175 | sprintf(eptr, "%d", lines ) ; | ^~ ./unxfuncs.c:175:24: note: directive argument in the range [1, 2147483647] 175 | sprintf(eptr, "%d", lines ) ; | ^~~~ ./unxfuncs.c:175:10: note: 'sprintf' output between 2 and 11 bytes into a destination of size 4 175 | sprintf(eptr, "%d", lines ) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./unxfuncs.c: In function '__regina_unx_uname': ./unxfuncs.c:234:35: warning: '%s' directive writing up to 256 bytes into a region of size 4 [-Wformat-overflow=] 234 | sprintf( result->value, "%s %s %s %s %s", utsbox.sysname, | ^~ ~~~~~~~~~~~~~~ ./unxfuncs.c:234:10: note: 'sprintf' output between 5 and 1285 bytes into a destination of size 4 234 | sprintf( result->value, "%s %s %s %s %s", utsbox.sysname, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 235 | utsbox.nodename, utsbox.release, utsbox.version, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 236 | utsbox.machine ) ; | ~~~~~~~~~~~~~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o cmsfuncs.o -c ./cmsfuncs.c ./cmsfuncs.c: In function '__regina_cms_state': ./cmsfuncs.c:306:12: warning: variable 'retval' set but not used [-Wunused-but-set-variable] 306 | streng *retval=NULL ; | ^~~~~~ ./cmsfuncs.c: At top level: ./cmsfuncs.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: cmsfuncs.c,v 1.3 2001/04/26 10:14:42 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o os2funcs.o -c ./os2funcs.c ./os2funcs.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: os2funcs.c,v 1.11 2002/01/12 04:55:56 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o shell.o -c ./shell.c ./shell.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: shell.c,v 1.29 2002/05/18 02:37:24 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o rexxext.o -c ./rexxext.c ./rexxext.c:51:12: warning: 'actually_pause' defined but not used [-Wunused-variable] 51 | static int actually_pause = 1; | ^~~~~~~~~~~~~~ ./rexxext.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: rexxext.c,v 1.14 2002/05/10 22:45:17 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o stack.o -c ./stack.c ./stack.c: In function '__regina_get_queue': ./stack.c:1365:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 1365 | int rc=0; | ^~ ./stack.c: At top level: ./stack.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: stack.c,v 1.9 2002/01/12 04:55:56 mark Exp $"; | ^~~~~ ./stack.c: In function '__regina_fill_input_queue': ./stack.c:500:29: warning: '%d' directive writing between 1 and 10 bytes into a region of size 4 [-Wformat-overflow=] 500 | stem->len = stemlen + sprintf(stem->value + stemlen, "%d", i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./stack.c:500:29: note: directive argument in the range [1, 2147483647] ./stack.c:500:29: note: 'sprintf' output between 2 and 11 bytes into a destination of size 4 gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o tracing.o -c ./tracing.c ./tracing.c: In function 'tracemsg': ./tracing.c:196:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 196 | int rc=0 ; | ^~ ./tracing.c: At top level: ./tracing.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: tracing.c,v 1.15 2002/03/23 00:42:48 mark Exp $"; | ^~~~~ In function 'tracemsg', inlined from '__regina_intertrace' at ./tracing.c:238:7: ./tracing.c:202:19: warning: ' +++ ' directive writing 11 bytes into a region of size 4 [-Wformat-overflow=] 202 | message->len = sprintf( message->value, " +++ %s", msg ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tracing.c:202:19: note: 'sprintf' output 12 or more bytes into a destination of size 4 ./tracing.c: In function '__regina_traceerror': ./tracing.c:155:36: warning: ' +++ RC=' directive writing 14 bytes into a region of size 4 [-Wformat-overflow=] 155 | sprintf(message->value, " +++ RC=%d +++",RC) ; | ~~~~^~~~~~~~~~ ./tracing.c:155:7: note: 'sprintf' output between 20 and 30 bytes into a destination of size 4 155 | sprintf(message->value, " +++ RC=%d +++",RC) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tracing.c: In function '__regina_traceback': ./tracing.c:442:58: warning: 'sprintf' writing a terminating nul past the end of the destination [-Wformat-overflow=] 442 | sprintf(tt->tracefmt,"%%6d +++ [...] %%%ds%%s", 30 ) ; | ^ ./tracing.c:442:13: note: 'sprintf' output 21 bytes into a destination of size 20 442 | sprintf(tt->tracefmt,"%%6d +++ [...] %%%ds%%s", 30 ) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o interp.o -c ./interp.c ./interp.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: interp.c,v 1.4 2001/08/20 11:34:22 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o cmath.o -c ./cmath.c ./cmath.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: cmath.c,v 1.3 2001/08/20 11:30:35 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o convert.o -c ./convert.c ./convert.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: convert.c,v 1.5 2001/09/04 11:15:45 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o strings.o -c ./strings.c ./strings.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: strings.c,v 1.7 2002/01/28 05:51:03 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o library.o -c ./library.c ./library.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: library.c,v 1.8 2002/03/09 01:19:53 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o strmath.o -c ./strmath.c ./strmath.c: In function '__regina_str_true': ./strmath.c:2401:15: warning: variable 'mt' set but not used [-Wunused-but-set-variable] 2401 | mat_tsd_t *mt; | ^~ ./strmath.c: In function '__regina_str_binerize': ./strmath.c:2657:10: warning: variable 'res_ptr' set but not used [-Wunused-but-set-variable] 2657 | char *res_ptr=NULL ; | ^~~~~~~ ./strmath.c: At top level: ./strmath.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: strmath.c,v 1.11 2002/04/09 10:24:55 mark Exp $"; | ^~~~~ ./strmath.c: In function '__regina_str_trunc': ./strmath.c:2473:26: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 2473 | result->value[j++] = mt->fdescr.num[i] ; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from ./rexx.h:219, from ./strmath.c:24: ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ ./strmath.c:2473:26: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 2473 | result->value[j++] = mt->fdescr.num[i] ; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ./strings.h:33:9: note: at offset [5, 2147483646] into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ ./strmath.c:2473:26: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 2473 | result->value[j++] = mt->fdescr.num[i] ; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ./strings.h:33:9: note: at offset [6, 2147483647] into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ ./strmath.c:2473:26: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 2473 | result->value[j++] = mt->fdescr.num[i] ; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o signals.o -c ./signals.c ./signals.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: signals.c,v 1.11 2001/09/09 10:23:48 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o macros.o -c ./macros.c ./macros.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: macros.c,v 1.11 2001/08/21 11:46:58 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o envir.o -c ./envir.c ./envir.c: In function 'get_io_flag': ./envir.c:329:20: warning: variable 'j' set but not used [-Wunused-but-set-variable] 329 | int j = 0; | ^ ./envir.c: At top level: ./envir.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: envir.c,v 1.15 2002/05/18 02:37:03 mark Exp $"; | ^~~~~ In function 'get_io_flag', inlined from '__regina_perform' at ./envir.c:510:23: ./envir.c:466:44: warning: array subscript 5 is above array bounds of 'char[4]' [-Warray-bounds=] 466 | command->value[i-5]=command->value[i] ; | ~~~~~~~~~~~~~~^~~ In file included from ./rexx.h:219, from ./envir.c:24: ./strings.h: In function '__regina_perform': ./strings.h:33:9: note: while referencing 'value' 33 | char value[4] ; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o expr.o -c ./expr.c ./expr.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: expr.c,v 1.10 2002/03/23 01:30:34 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o extstack.o -c ./extstack.c ./extstack.c: In function '__regina_read_result_from_rxstack': ./extstack.c:245:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 245 | int rc; | ^~ ./extstack.c: At top level: ./extstack.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: extstack.c,v 1.6 2002/03/23 00:56:47 mark Exp $"; | ^~~~~ ./extstack.c: In function '__regina_parse_queue': ./extstack.c:408:28: warning: array subscript 9 is above array bounds of 'char[4]' [-Warray-bounds=] 408 | (*server_name)->value[9] = '\0'; | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from ./rexx.h:219, from ./extstack.c:24: ./strings.h:33:9: note: while referencing 'value' 33 | char value[4] ; | ^~~~~ ./extstack.c:290:34: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 290 | queue->value[colon_pos] = '\0'; | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ ./extstack.c:283:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 283 | queue->value[at_pos] = '\0'; | ~~~~~~~~~~~~~~~~~~~~~^~~~~~ ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o extlib.o -c ./extlib.c ./extlib.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: extlib.c,v 1.2 2001/01/25 22:16:44 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o yaccsrc.o -c -DYYMAXDEPTH=10000 ./yaccsrc.c ./yaccsrc.y:4:14: warning: 'RCSid' defined but not used [-Wunused-variable] 4 | static char *RCSid = "$Id: yaccsrc.y,v 1.14 2002/05/18 02:37:28 mark Exp $"; | ^~~~~ ./yaccsrc.y: In function '__reginaparse': ./yaccsrc.y:116:15: warning: 'yyval' may be used uninitialized [-Wmaybe-uninitialized] 116 | | statement gruff { $$->next = NULL ; } | ^ /usr/lib/bison.simple:285:11: note: 'yyval' was declared here gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o lexsrc.o -c ./lexsrc.c flex.skl:1625:14: warning: 'yy_flex_realloc' defined but not used [-Wunused-function] flex.skl:1541:13: warning: 'yy_fatal_error' defined but not used [-Wunused-function] ./lexsrc.l:3:14: warning: 'RCSid' defined but not used [-Wunused-variable] 3 | static char *RCSid = "$Id: lexsrc.l,v 1.12 2002/03/09 01:12:09 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o options.o -c ./options.c ./options.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: options.c,v 1.5 2002/04/29 10:48:05 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o doscmd.o -c ./doscmd.c ./doscmd.c:136:15: warning: 'makesimpleargs' declared 'static' but never defined [-Wunused-function] 136 | static char **makesimpleargs(const char *string); | ^~~~~~~~~~~~~~ ./doscmd.c:137:14: warning: 'splitoffarg' declared 'static' but never defined [-Wunused-function] 137 | static char *splitoffarg(const char *string, const char **trailer, char escape); | ^~~~~~~~~~~ ./doscmd.c:139:12: warning: 'local_mkstemp' declared 'static' but never defined [-Wunused-function] 139 | static int local_mkstemp(const tsd_t *TSD, char *base); | ^~~~~~~~~~~~~ ./doscmd.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: doscmd.c,v 1.28 2002/05/14 10:00:01 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o rexxbif.o -c ./rexxbif.c gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o wrappers.o -c ./wrappers.c gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o mt_notmt.o -c ./mt_notmt.c gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o instore.o -c ./instore.c gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o rexx.o -c ./rexx.c ./rexx.c: In function 'main': ./rexx.c:271:8: warning: variable 'do_yydebug' set but not used [-Wunused-but-set-variable] 271 | int do_yydebug=0; | ^~~~~~~~~~ ./rexx.c: At top level: ./rexx.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: rexx.c,v 1.24 2002/05/14 10:02:43 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o nosaa.o -c ./nosaa.c gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -o rexx funcs.o builtin.o error.o variable.o interprt.o debug.o dbgfuncs.o memory.o parsing.o files.o misc.o unxfuncs.o cmsfuncs.o os2funcs.o shell.o rexxext.o stack.o tracing.o interp.o cmath.o convert.o strings.o library.o strmath.o signals.o macros.o envir.o expr.o extstack.o extlib.o yaccsrc.o lexsrc.o options.o doscmd.o rexxbif.o wrappers.o mt_notmt.o instore.o rexx.o nosaa.o -lm -lnsl -lsocket -lcrypt -ldl gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o client.o -c ./client.c ./client.c: In function 'do_an_external': ./client.c:1151:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 1151 | int rc ; | ^~ ./client.c: At top level: ./client.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: client.c,v 1.21 2002/03/23 00:39:18 mark Exp $"; | ^~~~~ In function 'SetVariable', inlined from '__regina_IfcVarPool' at ./client.c:945:12: ./client.c:875:28: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 875 | varname->value[i] = (unsigned char) toupper(varname->value[i]); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./rexx.h:219, from ./client.c:63: ./strings.h: In function '__regina_IfcVarPool': ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ In function 'GetVariable', inlined from '__regina_IfcVarPool' at ./client.c:943:12: ./client.c:823:30: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 823 | retval->value[i] = (unsigned char) toupper(retval->value[i]); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./strings.h: In function '__regina_IfcVarPool': ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ mv rexx.o rexx.o.save gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -c -DRXLIB ./rexx.c ./rexx.c: In function '__regina_faked_main': ./rexx.c:271:8: warning: variable 'do_yydebug' set but not used [-Wunused-but-set-variable] 271 | int do_yydebug=0; | ^~~~~~~~~~ ./rexx.c: At top level: ./rexx.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: rexx.c,v 1.24 2002/05/14 10:02:43 mark Exp $"; | ^~~~~ mv rexx.o drexx.o mv rexx.o.save rexx.o gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o rexxsaa.o -c ./rexxsaa.c ./rexxsaa.c: In function '__regina_IfcSubCmd': ./rexxsaa.c:538:28: warning: pointer targets in assignment from 'char *' to 'PUCHAR' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 538 | cmdhst.rxcmd_address = EnvNam ; | ^ ./rexxsaa.c:512:8: warning: variable 'rvalue' set but not used [-Wunused-but-set-variable] 512 | int rvalue=0, RCode=0, rc=RXEXIT_NOT_HANDLED ; | ^~~~~~ ./rexxsaa.c: In function 'RexxVariablePool': ./rexxsaa.c:1319:23: warning: suggest parentheses around operand of '!' or change '|' to '||' or '!' to '~' [-Wparentheses] 1319 | if (!Req->shvret | RXSHV_BADN) | ^~~~~~~~~~~~ ./rexxsaa.c:1200:15: warning: variable 'rt' set but not used [-Wunused-but-set-variable] 1200 | rex_tsd_t *rt; | ^~ ./rexxsaa.c: In function 'IfcFunctionExit': ./rexxsaa.c:1656:24: warning: pointer targets in assignment from 'char *' to 'PUCHAR' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 1656 | fnccal.rxfnc_que = qname; | ^ ./rexxsaa.c: In function '__regina_IfcExecFunc': ./rexxsaa.c:1697:15: warning: variable 'rt' set but not used [-Wunused-but-set-variable] 1697 | rex_tsd_t *rt; | ^~ ./rexxsaa.c: At top level: ./rexxsaa.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: rexxsaa.c,v 1.19 2002/03/23 00:48:14 mark Exp $"; | ^~~~~ ./rexxsaa.c: In function 'RexxStart': ./rexxsaa.c:959:42: warning: array subscript 12 is above array bounds of 'LONG (*[12])(LONG, LONG, UCHAR *)' {aka 'long int (*[12])(long int, long int, unsigned char *)'} [-Warray-bounds=] 959 | rt->CurrentHandlers->Handlers[RXENV] = handler ; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ ./rexxsaa.c:206:22: note: while referencing 'Handlers' 206 | RexxExitHandler *(Handlers[RXNOOFEXITS]) ; /* for RexxRegisterExitExe */ | ^~~~~~~~ ar cr libregina.a funcs.o builtin.o error.o variable.o interprt.o debug.o dbgfuncs.o memory.o parsing.o files.o misc.o unxfuncs.o cmsfuncs.o os2funcs.o shell.o rexxext.o stack.o tracing.o interp.o cmath.o convert.o strings.o library.o strmath.o signals.o macros.o envir.o expr.o extstack.o extlib.o yaccsrc.o lexsrc.o options.o doscmd.o rexxbif.o wrappers.o mt_notmt.o instore.o client.o drexx.o rexxsaa.o ranlib libregina.a gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o execiser.o -c ./execiser.c ./execiser.c: In function 'instore': ./execiser.c:81:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 81 | int rc ; | ^~ ./execiser.c: In function 'trace': ./execiser.c:132:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 132 | int rc ; | ^~ ./execiser.c: In function 'intertrc': ./execiser.c:215:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 215 | int rc ; | ^~ ./execiser.c: In function 'pull': ./execiser.c:283:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 283 | int rc ; | ^~ ./execiser.c: In function 'env': ./execiser.c:350:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 350 | int rc ; | ^~ ./execiser.c: In function 'init_term': ./execiser.c:529:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 529 | int rc ; | ^~ ./execiser.c: In function 'vars': ./execiser.c:696:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 696 | int rc ; | ^~ ./execiser.c: In function 'source': ./execiser.c:798:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 798 | int rc ; | ^~ ./execiser.c: In function 'parms': ./execiser.c:829:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 829 | int rc ; | ^~ ./execiser.c: In function 'allvars': ./execiser.c:959:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 959 | int rc ; | ^~ ./execiser.c: In function 'extfunc': ./execiser.c:1061:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 1061 | int rc ; | ^~ ./execiser.c: In function 'run_subcom': ./execiser.c:1128:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 1128 | int rc ; | ^~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o funcs.sho -fPIC -DDYNAMIC -c ./funcs.c ./funcs.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: funcs.c,v 1.16 2002/03/23 01:42:54 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o builtin.sho -fPIC -DDYNAMIC -c ./builtin.c ./builtin.c: In function '__regina_std_subword': ./builtin.c:550:7: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 550 | for ( ; (cptrvalue) | ^~ In file included from ./rexx.h:219, from ./builtin.c:24: ./strings.h:33:9: note: 'value' declared here 33 | char value[4] ; | ^~~~~ ./builtin.c:1032:29: warning: the comparison will always evaluate as 'true' for the address of 'value' will never be NULL [-Waddress] 1032 | if (str_suppformat && str_suppformat->value) | ^~ ./strings.h:33:9: note: 'value' declared here 33 | char value[4] ; | ^~~~~ ./builtin.c: In function '__regina_std_date': ./builtin.c:1212:23: warning: the comparison will always evaluate as 'true' for the address of 'value' will never be NULL [-Waddress] 1212 | if (suppdate && suppdate->value) | ^~ ./strings.h:33:9: note: 'value' declared here 33 | char value[4] ; | ^~~~~ ./builtin.c:1216:29: warning: the comparison will always evaluate as 'true' for the address of 'value' will never be NULL [-Waddress] 1216 | if (str_suppformat && str_suppformat->value) | ^~ ./strings.h:33:9: note: 'value' declared here 33 | char value[4] ; | ^~~~~ ./builtin.c: In function '__regina_std_address': ./builtin.c:1374:9: warning: variable 'opt' set but not used [-Wunused-but-set-variable] 1374 | char opt = 'N'; | ^~~ ./builtin.c: At top level: ./builtin.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: builtin.c,v 1.24 2002/04/01 05:36:50 mark Exp $"; | ^~~~~ ./builtin.c: In function '__regina_std_xrange': ./builtin.c:458:24: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 458 | result->value[i] = (char) start++ ; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ ./builtin.c: In function '__regina_std_overlay': ./builtin.c:907:39: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 907 | for (;k++value[j++]=padch) if (oldlen>i) i++ ; | ~~~~~~~~~~~~~~~~~~^~~~~~ ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ ./builtin.c:907:39: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 907 | for (;k++value[j++]=padch) if (oldlen>i) i++ ; | ~~~~~~~~~~~~~~~~~~^~~~~~ ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ ./builtin.c: In function '__regina_std_time': ./builtin.c:1115:37: warning: '%s' directive writing up to 6 bytes into a region of size between 0 and 3 [-Wformat-overflow=] 1115 | sprintf(answer->value, "%ld%s", | ^~ ./builtin.c:1115:10: note: 'sprintf' output between 2 and 27 bytes into a destination of size 4 1115 | sprintf(answer->value, "%ld%s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1116 | timediff,(timediff)?"000000":""); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c:1104:39: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 0 and 1 [-Wformat-overflow=] 1104 | sprintf(answer->value, "%02d:%02d:%02d", tmdata.tm_hour, | ^~~~ ./builtin.c:1104:10: note: 'sprintf' output between 9 and 36 bytes into a destination of size 4 1104 | sprintf(answer->value, "%02d:%02d:%02d", tmdata.tm_hour, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1105 | tmdata.tm_min, tmdata.tm_sec ) ; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c:1093:39: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 0 and 1 [-Wformat-overflow=] 1093 | sprintf(answer->value, "%02d:%02d:%02d.%06ld", tmdata.tm_hour, | ^~~~ ./builtin.c:1093:10: note: 'sprintf' output between 16 and 57 bytes into a destination of size 4 1093 | sprintf(answer->value, "%02d:%02d:%02d.%06ld", tmdata.tm_hour, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1094 | tmdata.tm_min, tmdata.tm_sec, unow ) ; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c:1088:34: warning: '%.06f' directive writing between 3 and 317 bytes into a region of size 4 [-Wformat-overflow=] 1088 | sprintf(answer->value, "%.06f", cpu_time()) ; | ^~~~~ ./builtin.c:1088:33: note: assuming directive output of 8 bytes 1088 | sprintf(answer->value, "%.06f", cpu_time()) ; | ^~~~~~~ ./builtin.c:1088:10: note: 'sprintf' output between 4 and 318 bytes into a destination of size 4 1088 | sprintf(answer->value, "%.06f", cpu_time()) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c:1076:40: warning: '%06lu' directive writing between 6 and 20 bytes into a region of size between 0 and 2 [-Wformat-overflow=] 1076 | sprintf(answer->value,"%ld.%06lu", (long)sec, (unsigned long)usec ) ; | ^~~~~ ./builtin.c:1076:35: note: using the range [0, 18446744073709551615] for directive argument 1076 | sprintf(answer->value,"%ld.%06lu", (long)sec, (unsigned long)usec ) ; | ^~~~~~~~~~~ ./builtin.c:1076:13: note: 'sprintf' output between 9 and 42 bytes into a destination of size 4 1076 | sprintf(answer->value,"%ld.%06lu", (long)sec, (unsigned long)usec ) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c:1078:37: warning: '%06lu' directive writing between 6 and 20 bytes into a region of size 3 [-Wformat-overflow=] 1078 | sprintf(answer->value,".%06lu", (unsigned long)usec ) ; | ^~~~~ ./builtin.c:1078:35: note: using the range [0, 18446744073709551615] for directive argument 1078 | sprintf(answer->value,".%06lu", (unsigned long)usec ) ; | ^~~~~~~~ ./builtin.c:1078:13: note: 'sprintf' output between 8 and 22 bytes into a destination of size 4 1078 | sprintf(answer->value,".%06lu", (unsigned long)usec ) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c:1047:37: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 0 and 2 [-Wformat-overflow=] 1047 | sprintf(answer->value, "%d:%02d%s", hour, tmdata.tm_min, ampm) ; | ^~~~ ./builtin.c:1047:10: note: 'sprintf' output between 7 and 18 bytes into a destination of size 4 1047 | sprintf(answer->value, "%d:%02d%s", hour, tmdata.tm_min, ampm) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c: In function '__regina_std_date': ./builtin.c:1141:30: warning: '%02d' directive writing between 2 and 11 bytes into a region of size 4 [-Wformat-overflow=] 1141 | static const char *fmt = "%02d/%02d/%02d" ; | ^~~~ ./builtin.c:1141:29: note: directive argument in the range [-2147483647, 2147483647] 1141 | static const char *fmt = "%02d/%02d/%02d" ; | ^~~~~~~~~~~~~~~~ ./builtin.c:1141:29: note: directive argument in the range [-99, 99] ./builtin.c:1284:10: note: 'sprintf' output between 9 and 28 bytes into a destination of size 4 1284 | sprintf(answer->value, fmt, tmdata.tm_mon+1, tmdata.tm_mday, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1285 | tmdata.tm_year%100 ) ; | ~~~~~~~~~~~~~~~~~~~~ ./builtin.c:1142:34: warning: '%02d' directive writing between 2 and 11 bytes into a region of size 0 [-Wformat-overflow=] 1142 | static const char *iso = "%04d%02d%02d" ; | ^~~~ ./builtin.c:1142:29: note: directive argument in the range [-2147483647, 2147483647] 1142 | static const char *iso = "%04d%02d%02d" ; | ^~~~~~~~~~~~~~ ./builtin.c:1272:10: note: 'sprintf' output between 9 and 34 bytes into a destination of size 4 1272 | sprintf(answer->value, iso, tmdata.tm_year, tmdata.tm_mon+1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1273 | tmdata.tm_mday) ; | ~~~~~~~~~~~~~~~ ./builtin.c:1141:35: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 0 and 1 [-Wformat-overflow=] 1141 | static const char *fmt = "%02d/%02d/%02d" ; | ^~~~ ./builtin.c:1141:29: note: directive argument in the range [-2147483647, 2147483647] 1141 | static const char *fmt = "%02d/%02d/%02d" ; | ^~~~~~~~~~~~~~~~ ./builtin.c:1266:10: note: 'sprintf' output between 9 and 28 bytes into a destination of size 4 1266 | sprintf(answer->value, fmt, tmdata.tm_year%100, tmdata.tm_mon+1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1267 | tmdata.tm_mday); | ~~~~~~~~~~~~~~~ ./builtin.c:1260:40: warning: '%c' directive writing 1 byte into a region of size 0 [-Wformat-overflow=] 1260 | sprintf(answer->value,"%d %c%c%c %4d", tmdata.tm_mday, chptr[0], chptr[1], | ^~ ./builtin.c:1260:10: note: 'sprintf' output between 11 and 28 bytes into a destination of size 4 1260 | sprintf(answer->value,"%d %c%c%c %4d", tmdata.tm_mday, chptr[0], chptr[1], | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1261 | chptr[2], tmdata.tm_year) ; | ~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c:1141:35: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 0 and 1 [-Wformat-overflow=] 1141 | static const char *fmt = "%02d/%02d/%02d" ; | ^~~~ ./builtin.c:1141:29: note: directive argument in the range [-2147483647, 2147483647] 1141 | static const char *fmt = "%02d/%02d/%02d" ; | ^~~~~~~~~~~~~~~~ ./builtin.c:1141:29: note: directive argument in the range [-99, 99] ./builtin.c:1247:10: note: 'sprintf' output between 9 and 28 bytes into a destination of size 4 1247 | sprintf(answer->value, fmt, tmdata.tm_mday, tmdata.tm_mon+1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1248 | tmdata.tm_year%100) ; | ~~~~~~~~~~~~~~~~~~~ ./builtin.c:1242:34: warning: '%d' directive writing between 1 and 11 bytes into a region of size 4 [-Wformat-overflow=] 1242 | sprintf(answer->value, "%d", tmdata.tm_yday + 1) ; | ^~ ./builtin.c:1242:33: note: directive argument in the range [-2147483647, 2147483647] 1242 | sprintf(answer->value, "%d", tmdata.tm_yday + 1) ; | ^~~~ ./builtin.c:1242:10: note: 'sprintf' output between 2 and 12 bytes into a destination of size 4 1242 | sprintf(answer->value, "%d", tmdata.tm_yday + 1) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c:1238:33: warning: '%d' directive writing between 1 and 11 bytes into a region of size 4 [-Wformat-overflow=] 1238 | sprintf(answer->value,"%d", length-basedays((tmdata.tm_year/100)*100)+1); /* bja */ | ^~ ./builtin.c:1238:32: note: directive argument in the range [-2147483647, 2147483647] 1238 | sprintf(answer->value,"%d", length-basedays((tmdata.tm_year/100)*100)+1); /* bja */ | ^~~~ ./builtin.c:1238:10: note: 'sprintf' output between 2 and 12 bytes into a destination of size 4 1238 | sprintf(answer->value,"%d", length-basedays((tmdata.tm_year/100)*100)+1); /* bja */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c: In function '__regina_std_substr': ./builtin.c:2034:37: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 2034 | for (j=0;jvalue[j++]=(char)((Str_in(str,i))?str->value[i++]:padch)) ; | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ ./builtin.c: In function '__regina_std_max': ./builtin.c:2058:28: warning: '%G' directive writing between 1 and 13 bytes into a region of size 4 [-Wformat-overflow=] 2058 | sprintf(result->value, "%G", largest) ; | ^~ ./builtin.c:2058:27: note: assuming directive output of 12 bytes 2058 | sprintf(result->value, "%G", largest) ; | ^~~~ ./builtin.c:2058:4: note: 'sprintf' output between 2 and 14 bytes into a destination of size 4 2058 | sprintf(result->value, "%G", largest) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./builtin.c: In function '__regina_std_min': ./builtin.c:2081:28: warning: '%G' directive writing between 1 and 13 bytes into a region of size 4 [-Wformat-overflow=] 2081 | sprintf(result->value, "%G", smallest) ; | ^~ ./builtin.c:2081:27: note: assuming directive output of 12 bytes 2081 | sprintf(result->value, "%G", smallest) ; | ^~~~ ./builtin.c:2081:4: note: 'sprintf' output between 2 and 14 bytes into a destination of size 4 2081 | sprintf(result->value, "%G", smallest) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o error.sho -fPIC -DDYNAMIC -c ./error.c ./error.c: In function '__regina_exiterror': ./error.c:445:18: warning: variable 'charno' set but not used [-Wunused-but-set-variable] 445 | int lineno=0, charno=0, signtype=0 ; | ^~~~~~ ./error.c: At top level: ./error.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: error.c,v 1.32 2002/03/23 01:31:11 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o variable.sho -fPIC -DDYNAMIC -c ./variable.c ./variable.c: In function 'kill_index': ./variable.c:143:31: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 143 | #define REPLACE_VALUE(val,p) {if(p->value) \ | ^~ ./variable.c:1034:19: note: in expansion of macro 'REPLACE_VALUE' 1034 | REPLACE_VALUE( tmpval, tttptr ) ; | ^~~~~~~~~~~~~ ./variable.c:1034:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1034 | REPLACE_VALUE( tmpval, tttptr ) ; | ^~~~~~ ./variable.c:144:31: note: in definition of macro 'REPLACE_VALUE' 144 | Free_stringTSD(p->value);p->value=val;p->guard=0;\ | ^ ./variable.c: In function 'setvalue_simple': ./variable.c:143:31: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 143 | #define REPLACE_VALUE(val,p) {if(p->value) \ | ^~ ./variable.c:1118:7: note: in expansion of macro 'REPLACE_VALUE' 1118 | REPLACE_VALUE(value,ptr) ; | ^~~~~~~~~~~~~ ./variable.c:1118:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1118 | REPLACE_VALUE(value,ptr) ; | ^~~ ./variable.c:144:31: note: in definition of macro 'REPLACE_VALUE' 144 | Free_stringTSD(p->value);p->value=val;p->guard=0;\ | ^ ./variable.c: In function 'setvalue_stem': ./variable.c:143:31: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 143 | #define REPLACE_VALUE(val,p) {if(p->value) \ | ^~ ./variable.c:1172:7: note: in expansion of macro 'REPLACE_VALUE' 1172 | REPLACE_VALUE( value, ptr ) ; | ^~~~~~~~~~~~~ ./variable.c:1172:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1172 | REPLACE_VALUE( value, ptr ) ; | ^~~ ./variable.c:144:31: note: in definition of macro 'REPLACE_VALUE' 144 | Free_stringTSD(p->value);p->value=val;p->guard=0;\ | ^ ./variable.c: In function 'setvalue_compound': ./variable.c:143:31: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 143 | #define REPLACE_VALUE(val,p) {if(p->value) \ | ^~ ./variable.c:1215:7: note: in expansion of macro 'REPLACE_VALUE' 1215 | REPLACE_VALUE(value,nptr) ; | ^~~~~~~~~~~~~ ./variable.c:1215:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1215 | REPLACE_VALUE(value,nptr) ; | ^~~~ ./variable.c:144:31: note: in definition of macro 'REPLACE_VALUE' 144 | Free_stringTSD(p->value);p->value=val;p->guard=0;\ | ^ ./variable.c: In function '__regina_setdirvalue_compound': ./variable.c:143:31: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 143 | #define REPLACE_VALUE(val,p) {if(p->value) \ | ^~ ./variable.c:1282:7: note: in expansion of macro 'REPLACE_VALUE' 1282 | REPLACE_VALUE(value,nptr) ; | ^~~~~~~~~~~~~ ./variable.c:1282:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1282 | REPLACE_VALUE(value,nptr) ; | ^~~~ ./variable.c:144:31: note: in definition of macro 'REPLACE_VALUE' 144 | Free_stringTSD(p->value);p->value=val;p->guard=0;\ | ^ ./variable.c: In function '__regina_shortcutnum': ./variable.c:2198:9: warning: variable 'ch' set but not used [-Wunused-but-set-variable] 2198 | char ch=' ' ; | ^~ ./variable.c: In function '__regina_fix_compound': ./variable.c:143:31: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 143 | #define REPLACE_VALUE(val,p) {if(p->value) \ | ^~ ./variable.c:2518:13: note: in expansion of macro 'REPLACE_VALUE' 2518 | REPLACE_VALUE( new, ptr ) | ^~~~~~~~~~~~~ ./variable.c:2518:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 2518 | REPLACE_VALUE( new, ptr ) | ^~~ ./variable.c:144:31: note: in definition of macro 'REPLACE_VALUE' 144 | Free_stringTSD(p->value);p->value=val;p->guard=0;\ | ^ ./variable.c: At top level: ./variable.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: variable.c,v 1.14 2002/01/20 08:28:56 mark Exp $"; | ^~~~~ ./variable.c: In function 'subst_index': ./variable.c:996:23: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 996 | *(cptr++) = (char) (toupper( name->value[i] )) ; | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./rexx.h:219, from ./variable.c:70: ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o interprt.sho -fPIC -DDYNAMIC -c ./interprt.c ./interprt.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: interprt.c,v 1.20 2002/03/23 00:56:06 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o debug.sho -fPIC -DDYNAMIC -c ./debug.c ./debug.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: debug.c,v 1.5 2002/03/23 00:39:59 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o dbgfuncs.sho -fPIC -DDYNAMIC -c ./dbgfuncs.c ./dbgfuncs.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: dbgfuncs.c,v 1.5 2001/09/17 11:42:54 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o memory.sho -fPIC -DDYNAMIC -c ./memory.c ./memory.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: memory.c,v 1.6 2001/09/09 10:22:50 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o parsing.sho -fPIC -DDYNAMIC -c ./parsing.c ./parsing.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: parsing.c,v 1.3 2001/09/04 11:32:37 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o files.sho -fPIC -DDYNAMIC -c ./files.c ./files.c: In function 'positionfile': ./files.c:2091:21: warning: variable 'old_errno' set but not used [-Wunused-but-set-variable] 2091 | int from_line=0, old_errno=0, tmp=0 ; | ^~~~~~~~~ ./files.c: In function 'calc_chars_left': ./files.c:2916:8: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses] 2916 | if (! ptr->flag & FLAG_READ) | ^~~~~~~~~~~ ./files.c: In function 'getseek': ./files.c:3649:33: warning: variable 'words' set but not used [-Wunused-but-set-variable] 3649 | int str_start=0,str_end=(-1),words; | ^~~~~ ./files.c: In function '__regina_std_chars': ./files.c:3826:9: warning: variable 'opt' set but not used [-Wunused-but-set-variable] 3826 | char opt = 'N'; | ^~~ ./files.c: At top level: ./files.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: files.c,v 1.26 2002/04/01 05:37:43 mark Exp $"; | ^~~~~ ./files.c: In function 'getseek': ./files.c:3797:31: warning: '%ld' directive writing between 1 and 11 bytes into a region of size 4 [-Wformat-overflow=] 3797 | sprintf(result->value, "%ld", pos ); | ^~~ ./files.c:3797:30: note: directive argument in the range [-2147483648, 2147483647] 3797 | sprintf(result->value, "%ld", pos ); | ^~~~~ ./files.c:3797:7: note: 'sprintf' output between 2 and 12 bytes into a destination of size 4 3797 | sprintf(result->value, "%ld", pos ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./files.c: In function 'getstatus': ./files.c:3368:41: warning: '%ld' directive writing between 1 and 20 bytes into a region of size 4 [-Wformat-overflow=] 3368 | sprintf( result->value, "%ld", pos_write + 1) ; | ^~~ ./files.c:3368:40: note: directive argument in the range [-9223372036854775807, 9223372036854775807] 3368 | sprintf( result->value, "%ld", pos_write + 1) ; | ^~~~~ ./files.c:3368:16: note: 'sprintf' output between 2 and 21 bytes into a destination of size 4 3368 | sprintf( result->value, "%ld", pos_write + 1) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./files.c:3378:41: warning: '%ld' directive writing between 1 and 11 bytes into a region of size 4 [-Wformat-overflow=] 3378 | sprintf( result->value, "%ld", pos_line ) ; | ^~~ ./files.c:3378:40: note: directive argument in the range [-2147483648, 2147483647] 3378 | sprintf( result->value, "%ld", pos_line ) ; | ^~~~~ ./files.c:3378:16: note: 'sprintf' output between 2 and 12 bytes into a destination of size 4 3378 | sprintf( result->value, "%ld", pos_line ) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./files.c:3359:41: warning: '%ld' directive writing between 1 and 20 bytes into a region of size 4 [-Wformat-overflow=] 3359 | sprintf( result->value, "%ld", pos_read + 1) ; | ^~~ ./files.c:3359:40: note: directive argument in the range [-9223372036854775807, 9223372036854775807] 3359 | sprintf( result->value, "%ld", pos_read + 1) ; | ^~~~~ ./files.c:3359:16: note: 'sprintf' output between 2 and 21 bytes into a destination of size 4 3359 | sprintf( result->value, "%ld", pos_read + 1) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./files.c:3177:30: warning: '%04d' directive writing between 4 and 11 bytes into a region of size 4 [-Wformat-overflow=] 3177 | static const char *iso = "%04d-%02d-%02d %02d:%02d:%02d" ; | ^~~~ ./files.c:3177:29: note: directive argument in the range [-2147481748, 2147483647] 3177 | static const char *iso = "%04d-%02d-%02d %02d:%02d:%02d" ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./files.c:3177:29: note: directive argument in the range [-2147483647, 2147483647] ./files.c:3348:16: note: 'sprintf' output between 20 and 72 bytes into a destination of size 4 3348 | sprintf( result->value, iso, tmdata.tm_year+1900, tmdata.tm_mon+1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3349 | tmdata.tm_mday, | ~~~~~~~~~~~~~~~ 3350 | tmdata.tm_hour, tmdata.tm_min, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3351 | tmdata.tm_sec ) ; | ~~~~~~~~~~~~~~~ ./files.c:3176:30: warning: '%02d' directive writing between 2 and 11 bytes into a region of size 4 [-Wformat-overflow=] 3176 | static const char *fmt = "%02d-%02d-%02d %02d:%02d:%02d" ; | ^~~~ ./files.c:3176:29: note: directive argument in the range [-2147483647, 2147483647] 3176 | static const char *fmt = "%02d-%02d-%02d %02d:%02d:%02d" ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./files.c:3176:29: note: directive argument in the range [-99, 99] ./files.c:3331:16: note: 'sprintf' output between 18 and 64 bytes into a destination of size 4 3331 | sprintf( result->value, fmt, tmdata.tm_mon+1, tmdata.tm_mday, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3332 | (tmdata.tm_year % 100), tmdata.tm_hour, tmdata.tm_min, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3333 | tmdata.tm_sec ) ; | ~~~~~~~~~~~~~~~ ./files.c:3238:28: warning: '%03o' directive writing 3 bytes into a region of size 0 [-Wformat-overflow=] 3238 | "%ld %ld %03o %d %s %s %ld", | ^~~~ ./files.c:3238:19: note: directive argument in the range [0, 127] 3238 | "%ld %ld %03o %d %s %s %ld", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./files.c:3238:19: note: using the range [-2147483648, 2147483647] for directive argument ./files.c:3237:16: note: 'sprintf' output 14 or more bytes into a destination of size 4 3237 | sprintf( result->value, | ^~~~~~~~~~~~~~~~~~~~~~~ 3238 | "%ld %ld %03o %d %s %s %ld", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3239 | (long)(buffer.st_dev), (long)(buffer.st_ino), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3240 | buffer.st_mode & 0x7f, buffer.st_nlink, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3241 | #if defined(VMS) || defined(MAC) || defined(OS2) || defined(DOS) || defined (__WATCOMC__) || defined(_MSC_VER) || (defined(WIN32) && defined(__IBMC__)) || defined(_AMIGA) || defined(__MINGW32__) || defined(__BORLANDC__) || defined(__EPOC32__) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3242 | "USER", "GROUP", | ~~~~~~~~~~~~~~~~ 3243 | #else | ~~~~~ 3244 | getpwuid( buffer.st_uid )->pw_name, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3245 | getgrgid( buffer.st_gid )->gr_name, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3246 | #endif | ~~~~~~ 3247 | (long)(buffer.st_size) ) ; | ~~~~~~~~~~~~~~~~~~~~~~~~ ./files.c: In function '__regina_std_stream': ./files.c:3429:18: warning: ' READ: char=' directive writing 12 bytes into a region of size 4 [-Wformat-overflow=] 3429 | " READ: char=%ld line=%d WRITE: char=%ld line=%d %s", | ~~~~^~~~~~~~ In function 'getrexxstatus', inlined from '__regina_std_stream' at ./files.c:4455:25: ./files.c:3429:13: note: using the range [-9223372036854775808, 9223372036854775807] for directive argument 3429 | " READ: char=%ld line=%d WRITE: char=%ld line=%d %s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./files.c:3429:13: note: using the range [-9223372036854775808, 9223372036854775807] for directive argument ./files.c:3428:4: note: 'sprintf' output between 52 and 111 bytes into a destination of size 4 3428 | sprintf( result->value + strlen(result->value), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3429 | " READ: char=%ld line=%d WRITE: char=%ld line=%d %s", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3430 | (long)(ptr->readpos+1), ptr->readline, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3431 | (long)(ptr->writepos+1), ptr->writeline, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3432 | (ptr->flag & FLAG_PERSIST) ? "PERSISTENT" : "TRANSIENT" ) ; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o misc.sho -fPIC -DDYNAMIC -c ./misc.c ./misc.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: misc.c,v 1.5 2001/09/04 11:25:55 mark Exp $"; | ^~~~~ ./misc.c: In function '__regina_upcase': ./misc.c:97:27: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 97 | source->value[i] -= CHAR_OFFSET ; In file included from ./rexx.h:219, from ./misc.c:24: ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o unxfuncs.sho -fPIC -DDYNAMIC -c ./unxfuncs.c ./unxfuncs.c: In function '__regina_unx_crypt': ./unxfuncs.c:366:13: warning: implicit declaration of function 'crypt' [-Wimplicit-function-declaration] 366 | output = crypt( key, salt ) ; | ^~~~~ ./unxfuncs.c:366:11: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 366 | output = crypt( key, salt ) ; | ^ ./unxfuncs.c: At top level: ./unxfuncs.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: unxfuncs.c,v 1.16 2002/05/11 00:48:40 mark Exp $"; | ^~~~~ ./unxfuncs.c: In function '__regina_unx_popen': ./unxfuncs.c:175:25: warning: '%d' directive writing between 1 and 10 bytes into a region of size 4 [-Wformat-overflow=] 175 | sprintf(eptr, "%d", lines ) ; | ^~ ./unxfuncs.c:175:24: note: directive argument in the range [1, 2147483647] 175 | sprintf(eptr, "%d", lines ) ; | ^~~~ ./unxfuncs.c:175:10: note: 'sprintf' output between 2 and 11 bytes into a destination of size 4 175 | sprintf(eptr, "%d", lines ) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./unxfuncs.c: In function '__regina_unx_uname': ./unxfuncs.c:234:35: warning: '%s' directive writing up to 256 bytes into a region of size 4 [-Wformat-overflow=] 234 | sprintf( result->value, "%s %s %s %s %s", utsbox.sysname, | ^~ ~~~~~~~~~~~~~~ ./unxfuncs.c:234:10: note: 'sprintf' output between 5 and 1285 bytes into a destination of size 4 234 | sprintf( result->value, "%s %s %s %s %s", utsbox.sysname, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 235 | utsbox.nodename, utsbox.release, utsbox.version, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 236 | utsbox.machine ) ; | ~~~~~~~~~~~~~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o cmsfuncs.sho -fPIC -DDYNAMIC -c ./cmsfuncs.c ./cmsfuncs.c: In function '__regina_cms_state': ./cmsfuncs.c:306:12: warning: variable 'retval' set but not used [-Wunused-but-set-variable] 306 | streng *retval=NULL ; | ^~~~~~ ./cmsfuncs.c: At top level: ./cmsfuncs.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: cmsfuncs.c,v 1.3 2001/04/26 10:14:42 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o shell.sho -fPIC -DDYNAMIC -c ./shell.c ./shell.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: shell.c,v 1.29 2002/05/18 02:37:24 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o os2funcs.sho -fPIC -DDYNAMIC -c ./os2funcs.c ./os2funcs.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: os2funcs.c,v 1.11 2002/01/12 04:55:56 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o rexxext.sho -fPIC -DDYNAMIC -c ./rexxext.c ./rexxext.c:51:12: warning: 'actually_pause' defined but not used [-Wunused-variable] 51 | static int actually_pause = 1; | ^~~~~~~~~~~~~~ ./rexxext.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: rexxext.c,v 1.14 2002/05/10 22:45:17 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o stack.sho -fPIC -DDYNAMIC -c ./stack.c ./stack.c: In function '__regina_get_queue': ./stack.c:1365:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 1365 | int rc=0; | ^~ ./stack.c: At top level: ./stack.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: stack.c,v 1.9 2002/01/12 04:55:56 mark Exp $"; | ^~~~~ ./stack.c: In function '__regina_fill_input_queue': ./stack.c:500:29: warning: '%d' directive writing between 1 and 10 bytes into a region of size 4 [-Wformat-overflow=] 500 | stem->len = stemlen + sprintf(stem->value + stemlen, "%d", i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./stack.c:500:29: note: directive argument in the range [1, 2147483647] ./stack.c:500:29: note: 'sprintf' output between 2 and 11 bytes into a destination of size 4 gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o tracing.sho -fPIC -DDYNAMIC -c ./tracing.c ./tracing.c: In function 'tracemsg': ./tracing.c:196:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 196 | int rc=0 ; | ^~ ./tracing.c: At top level: ./tracing.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: tracing.c,v 1.15 2002/03/23 00:42:48 mark Exp $"; | ^~~~~ In function 'tracemsg', inlined from '__regina_intertrace' at ./tracing.c:238:7: ./tracing.c:202:19: warning: ' +++ ' directive writing 11 bytes into a region of size 4 [-Wformat-overflow=] 202 | message->len = sprintf( message->value, " +++ %s", msg ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tracing.c:202:19: note: 'sprintf' output 12 or more bytes into a destination of size 4 ./tracing.c: In function '__regina_traceerror': ./tracing.c:155:36: warning: ' +++ RC=' directive writing 14 bytes into a region of size 4 [-Wformat-overflow=] 155 | sprintf(message->value, " +++ RC=%d +++",RC) ; | ~~~~^~~~~~~~~~ ./tracing.c:155:7: note: 'sprintf' output between 20 and 30 bytes into a destination of size 4 155 | sprintf(message->value, " +++ RC=%d +++",RC) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tracing.c: In function '__regina_traceback': ./tracing.c:442:58: warning: 'sprintf' writing a terminating nul past the end of the destination [-Wformat-overflow=] 442 | sprintf(tt->tracefmt,"%%6d +++ [...] %%%ds%%s", 30 ) ; | ^ ./tracing.c:442:13: note: 'sprintf' output 21 bytes into a destination of size 20 442 | sprintf(tt->tracefmt,"%%6d +++ [...] %%%ds%%s", 30 ) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o interp.sho -fPIC -DDYNAMIC -c ./interp.c ./interp.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: interp.c,v 1.4 2001/08/20 11:34:22 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o cmath.sho -fPIC -DDYNAMIC -c ./cmath.c ./cmath.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: cmath.c,v 1.3 2001/08/20 11:30:35 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o convert.sho -fPIC -DDYNAMIC -c ./convert.c ./convert.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: convert.c,v 1.5 2001/09/04 11:15:45 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o strings.sho -fPIC -DDYNAMIC -c ./strings.c ./strings.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: strings.c,v 1.7 2002/01/28 05:51:03 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o library.sho -fPIC -DDYNAMIC -c ./library.c ./library.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: library.c,v 1.8 2002/03/09 01:19:53 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o strmath.sho -fPIC -DDYNAMIC -c ./strmath.c ./strmath.c: In function '__regina_str_true': ./strmath.c:2401:15: warning: variable 'mt' set but not used [-Wunused-but-set-variable] 2401 | mat_tsd_t *mt; | ^~ ./strmath.c: In function '__regina_str_binerize': ./strmath.c:2657:10: warning: variable 'res_ptr' set but not used [-Wunused-but-set-variable] 2657 | char *res_ptr=NULL ; | ^~~~~~~ ./strmath.c: At top level: ./strmath.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: strmath.c,v 1.11 2002/04/09 10:24:55 mark Exp $"; | ^~~~~ ./strmath.c: In function '__regina_str_trunc': ./strmath.c:2473:26: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 2473 | result->value[j++] = mt->fdescr.num[i] ; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from ./rexx.h:219, from ./strmath.c:24: ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ ./strmath.c:2473:26: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 2473 | result->value[j++] = mt->fdescr.num[i] ; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ./strings.h:33:9: note: at offset [5, 2147483646] into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ ./strmath.c:2473:26: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 2473 | result->value[j++] = mt->fdescr.num[i] ; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ./strings.h:33:9: note: at offset [6, 2147483647] into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ ./strmath.c:2473:26: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 2473 | result->value[j++] = mt->fdescr.num[i] ; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o signals.sho -fPIC -DDYNAMIC -c ./signals.c ./signals.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: signals.c,v 1.11 2001/09/09 10:23:48 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o macros.sho -fPIC -DDYNAMIC -c ./macros.c ./macros.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: macros.c,v 1.11 2001/08/21 11:46:58 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o envir.sho -fPIC -DDYNAMIC -c ./envir.c ./envir.c: In function 'get_io_flag': ./envir.c:329:20: warning: variable 'j' set but not used [-Wunused-but-set-variable] 329 | int j = 0; | ^ ./envir.c: At top level: ./envir.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: envir.c,v 1.15 2002/05/18 02:37:03 mark Exp $"; | ^~~~~ In function 'get_io_flag', inlined from '__regina_perform' at ./envir.c:510:23: ./envir.c:466:44: warning: array subscript 5 is above array bounds of 'char[4]' [-Warray-bounds=] 466 | command->value[i-5]=command->value[i] ; | ~~~~~~~~~~~~~~^~~ In file included from ./rexx.h:219, from ./envir.c:24: ./strings.h: In function '__regina_perform': ./strings.h:33:9: note: while referencing 'value' 33 | char value[4] ; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o expr.sho -fPIC -DDYNAMIC -c ./expr.c ./expr.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: expr.c,v 1.10 2002/03/23 01:30:34 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o extstack.sho -fPIC -DDYNAMIC -c ./extstack.c ./extstack.c: In function '__regina_read_result_from_rxstack': ./extstack.c:245:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 245 | int rc; | ^~ ./extstack.c: At top level: ./extstack.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: extstack.c,v 1.6 2002/03/23 00:56:47 mark Exp $"; | ^~~~~ ./extstack.c: In function '__regina_parse_queue': ./extstack.c:408:28: warning: array subscript 9 is above array bounds of 'char[4]' [-Warray-bounds=] 408 | (*server_name)->value[9] = '\0'; | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from ./rexx.h:219, from ./extstack.c:24: ./strings.h:33:9: note: while referencing 'value' 33 | char value[4] ; | ^~~~~ ./extstack.c:290:34: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 290 | queue->value[colon_pos] = '\0'; | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ ./extstack.c:283:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 283 | queue->value[at_pos] = '\0'; | ~~~~~~~~~~~~~~~~~~~~~^~~~~~ ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o extlib.sho -fPIC -DDYNAMIC -c ./extlib.c ./extlib.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: extlib.c,v 1.2 2001/01/25 22:16:44 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o yaccsrc.sho -fPIC -DDYNAMIC -c -DYYMAXDEPTH=10000 ./yaccsrc.c ./yaccsrc.y:4:14: warning: 'RCSid' defined but not used [-Wunused-variable] 4 | static char *RCSid = "$Id: yaccsrc.y,v 1.14 2002/05/18 02:37:28 mark Exp $"; | ^~~~~ ./yaccsrc.y: In function '__reginaparse': ./yaccsrc.y:116:15: warning: 'yyval' may be used uninitialized [-Wmaybe-uninitialized] 116 | | statement gruff { $$->next = NULL ; } | ^ /usr/lib/bison.simple:285:11: note: 'yyval' was declared here gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o lexsrc.sho -fPIC -DDYNAMIC -c ./lexsrc.c flex.skl:1625:14: warning: 'yy_flex_realloc' defined but not used [-Wunused-function] flex.skl:1541:13: warning: 'yy_fatal_error' defined but not used [-Wunused-function] ./lexsrc.l:3:14: warning: 'RCSid' defined but not used [-Wunused-variable] 3 | static char *RCSid = "$Id: lexsrc.l,v 1.12 2002/03/09 01:12:09 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o wrappers.sho -fPIC -DDYNAMIC -c ./wrappers.c ./wrappers.c: In function '__regina_wrapper_load': ./wrappers.c:221:16: warning: pointer targets in passing argument 1 of 'rxstrlwr' differ in signedness [-Wpointer-sign] 221 | rxstrlwr(udpart,postfix); | ^~~~~~ | | | char * ./wrappers.c:164:38: note: expected 'unsigned char *' but argument is of type 'char *' 164 | static void rxstrlwr(unsigned char * s, unsigned char *e) | ~~~~~~~~~~~~~~~~^ ./wrappers.c:221:23: warning: pointer targets in passing argument 2 of 'rxstrlwr' differ in signedness [-Wpointer-sign] 221 | rxstrlwr(udpart,postfix); | ^~~~~~~ | | | char * ./wrappers.c:164:56: note: expected 'unsigned char *' but argument is of type 'char *' 164 | static void rxstrlwr(unsigned char * s, unsigned char *e) | ~~~~~~~~~~~~~~~^ ./wrappers.c:226:19: warning: pointer targets in passing argument 1 of 'rxstrupr' differ in signedness [-Wpointer-sign] 226 | rxstrupr(udpart,postfix); | ^~~~~~ | | | char * ./wrappers.c:173:38: note: expected 'unsigned char *' but argument is of type 'char *' 173 | static void rxstrupr(unsigned char * s, unsigned char *e) | ~~~~~~~~~~~~~~~~^ ./wrappers.c:226:26: warning: pointer targets in passing argument 2 of 'rxstrupr' differ in signedness [-Wpointer-sign] 226 | rxstrupr(udpart,postfix); | ^~~~~~~ | | | char * ./wrappers.c:173:56: note: expected 'unsigned char *' but argument is of type 'char *' 173 | static void rxstrupr(unsigned char * s, unsigned char *e) | ~~~~~~~~~~~~~~~^ ./wrappers.c: In function '__regina_wrapper_get_addr': ./wrappers.c:350:16: warning: pointer targets in passing argument 1 of 'rxstrupr' differ in signedness [-Wpointer-sign] 350 | rxstrupr(funcname,NULL); | ^~~~~~~~ | | | char * ./wrappers.c:173:38: note: expected 'unsigned char *' but argument is of type 'char *' 173 | static void rxstrupr(unsigned char * s, unsigned char *e) | ~~~~~~~~~~~~~~~~^ ./wrappers.c:355:19: warning: pointer targets in passing argument 1 of 'rxstrlwr' differ in signedness [-Wpointer-sign] 355 | rxstrlwr(funcname,NULL); | ^~~~~~~~ | | | char * ./wrappers.c:164:38: note: expected 'unsigned char *' but argument is of type 'char *' 164 | static void rxstrlwr(unsigned char * s, unsigned char *e) | ~~~~~~~~~~~~~~~~^ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o options.sho -fPIC -DDYNAMIC -c ./options.c ./options.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: options.c,v 1.5 2002/04/29 10:48:05 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o doscmd.sho -fPIC -DDYNAMIC -c ./doscmd.c ./doscmd.c:136:15: warning: 'makesimpleargs' declared 'static' but never defined [-Wunused-function] 136 | static char **makesimpleargs(const char *string); | ^~~~~~~~~~~~~~ ./doscmd.c:137:14: warning: 'splitoffarg' declared 'static' but never defined [-Wunused-function] 137 | static char *splitoffarg(const char *string, const char **trailer, char escape); | ^~~~~~~~~~~ ./doscmd.c:139:12: warning: 'local_mkstemp' declared 'static' but never defined [-Wunused-function] 139 | static int local_mkstemp(const tsd_t *TSD, char *base); | ^~~~~~~~~~~~~ ./doscmd.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: doscmd.c,v 1.28 2002/05/14 10:00:01 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o rexxbif.sho -fPIC -DDYNAMIC -c ./rexxbif.c mv rexx.o rexx.o.save gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -fPIC -DDYNAMIC -c -DRXLIB ./rexx.c ./rexx.c: In function '__regina_faked_main': ./rexx.c:271:8: warning: variable 'do_yydebug' set but not used [-Wunused-but-set-variable] 271 | int do_yydebug=0; | ^~~~~~~~~~ ./rexx.c: At top level: ./rexx.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: rexx.c,v 1.24 2002/05/14 10:02:43 mark Exp $"; | ^~~~~ mv rexx.o drexx.sho mv rexx.o.save rexx.o gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o client.sho -fPIC -DDYNAMIC -c ./client.c ./client.c: In function 'do_an_external': ./client.c:1151:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 1151 | int rc ; | ^~ ./client.c: At top level: ./client.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: client.c,v 1.21 2002/03/23 00:39:18 mark Exp $"; | ^~~~~ In function 'SetVariable', inlined from '__regina_IfcVarPool' at ./client.c:945:12: ./client.c:875:28: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 875 | varname->value[i] = (unsigned char) toupper(varname->value[i]); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./rexx.h:219, from ./client.c:63: ./strings.h: In function '__regina_IfcVarPool': ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ In function 'GetVariable', inlined from '__regina_IfcVarPool' at ./client.c:943:12: ./client.c:823:30: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 823 | retval->value[i] = (unsigned char) toupper(retval->value[i]); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./strings.h: In function '__regina_IfcVarPool': ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o rexxsaa.sho -fPIC -DDYNAMIC -c ./rexxsaa.c ./rexxsaa.c: In function '__regina_IfcSubCmd': ./rexxsaa.c:538:28: warning: pointer targets in assignment from 'char *' to 'PUCHAR' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 538 | cmdhst.rxcmd_address = EnvNam ; | ^ ./rexxsaa.c:512:8: warning: variable 'rvalue' set but not used [-Wunused-but-set-variable] 512 | int rvalue=0, RCode=0, rc=RXEXIT_NOT_HANDLED ; | ^~~~~~ ./rexxsaa.c: In function 'RexxVariablePool': ./rexxsaa.c:1319:23: warning: suggest parentheses around operand of '!' or change '|' to '||' or '!' to '~' [-Wparentheses] 1319 | if (!Req->shvret | RXSHV_BADN) | ^~~~~~~~~~~~ ./rexxsaa.c:1200:15: warning: variable 'rt' set but not used [-Wunused-but-set-variable] 1200 | rex_tsd_t *rt; | ^~ ./rexxsaa.c: In function 'IfcFunctionExit': ./rexxsaa.c:1656:24: warning: pointer targets in assignment from 'char *' to 'PUCHAR' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 1656 | fnccal.rxfnc_que = qname; | ^ ./rexxsaa.c: In function '__regina_IfcExecFunc': ./rexxsaa.c:1697:15: warning: variable 'rt' set but not used [-Wunused-but-set-variable] 1697 | rex_tsd_t *rt; | ^~ ./rexxsaa.c: At top level: ./rexxsaa.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: rexxsaa.c,v 1.19 2002/03/23 00:48:14 mark Exp $"; | ^~~~~ ./rexxsaa.c: In function 'RexxStart': ./rexxsaa.c:959:42: warning: array subscript 12 is above array bounds of 'LONG (*[12])(LONG, LONG, UCHAR *)' {aka 'long int (*[12])(long int, long int, unsigned char *)'} [-Warray-bounds=] 959 | rt->CurrentHandlers->Handlers[RXENV] = handler ; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ ./rexxsaa.c:206:22: note: while referencing 'Handlers' 206 | RexxExitHandler *(Handlers[RXNOOFEXITS]) ; /* for RexxRegisterExitExe */ | ^~~~~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o mt_notmt.sho -fPIC -DDYNAMIC -c ./mt_notmt.c gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o instore.sho -fPIC -DDYNAMIC -c ./instore.c gcc -shared -o libregina.so funcs.sho builtin.sho error.sho variable.sho interprt.sho debug.sho dbgfuncs.sho memory.sho parsing.sho files.sho misc.sho unxfuncs.sho cmsfuncs.sho shell.sho os2funcs.sho rexxext.sho stack.sho tracing.sho interp.sho cmath.sho convert.sho strings.sho library.sho strmath.sho signals.sho macros.sho envir.sho expr.sho extstack.sho extlib.sho yaccsrc.sho lexsrc.sho wrappers.sho options.sho doscmd.sho rexxbif.sho drexx.sho client.sho rexxsaa.sho mt_notmt.sho instore.sho -lm -lnsl -lsocket -lcrypt -ldl gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -o execiser execiser.o -L. -lregina -lm -lnsl -lsocket -lcrypt -ldl gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o regina.o -c ./regina.c ./regina.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: regina.c,v 1.2 2001/01/25 22:20:03 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -Wl,-R/opt/pkg/lib -o regina regina.o libregina.so -lm -lnsl -lsocket -lcrypt -ldl gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o tregina.sho -fPIC -DDYNAMIC -c ./tregina.c gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -Wl,-R/opt/pkg/lib -o tregina tregina.sho libregina.so -lm -lnsl -lsocket -lcrypt -ldl gcc -c -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o test1.o -fPIC -DDYNAMIC ./test1.c ./test1.c: In function 'MkAsciz': ./test1.c:80:4: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 80 | memcpy(buf, str, len); | ^~~~~~ ./test1.c:10:1: note: include '' or provide a declaration of 'memcpy' 9 | #include "rexxsaa.h" +++ |+#include 10 | ./test1.c:80:4: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 80 | memcpy(buf, str, len); | ^~~~~~ ./test1.c:80:4: note: include '' or provide a declaration of 'memcpy' ./test1.c: In function 'static_show_parameter': ./test1.c:93:4: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 93 | memcpy(buf,argv[0].strptr,argv[0].strlength); | ^~~~~~ ./test1.c:93:4: note: include '' or provide a declaration of 'memcpy' ./test1.c:95:8: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 95 | if (strcmp(func_name,buf) != 0) | ^~~~~~ ./test1.c:95:8: note: include '' or provide a declaration of 'strcmp' ./test1.c: In function 'global_show_parameter': ./test1.c:109:4: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 109 | memcpy(buf,argv[0].strptr,argv[0].strlength); | ^~~~~~ ./test1.c:109:4: note: include '' or provide a declaration of 'memcpy' ./test1.c: In function 'Test1Function1': ./test1.c:124:4: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 124 | strcpy(retstr->strptr,"0"); | ^~~~~~ ./test1.c:124:4: note: include '' or provide a declaration of 'strcpy' ./test1.c:124:4: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] ./test1.c:124:4: note: include '' or provide a declaration of 'strcpy' ./test1.c: In function 'Test1Function2': ./test1.c:136:4: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 136 | strcpy(retstr->strptr,"0"); | ^~~~~~ ./test1.c:136:4: note: include '' or provide a declaration of 'strcpy' ./test1.c: In function 'Test1DropFuncs': ./test1.c:151:24: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 151 | retstr->strlength = strlen(retstr->strptr); | ^~~~~~ ./test1.c:151:24: note: include '' or provide a declaration of 'strlen' ./test1.c:151:24: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] ./test1.c:151:24: note: include '' or provide a declaration of 'strlen' ./test1.c: In function 'InitRexxSQL': ./test1.c:162:10: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 162 | ULONG rc=0L; | ^~ ./test1.c: In function 'Test1LoadFuncs': ./test1.c:177:24: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 177 | retstr->strlength = strlen(retstr->strptr); | ^~~~~~ ./test1.c:177:24: note: include '' or provide a declaration of 'strlen' gcc -shared -o libtest1.so test1.o -R/opt/pkg/lib gcc -c -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o test2.o -fPIC -DDYNAMIC ./test2.c ./test2.c: In function 'MkAsciz': ./test2.c:80:4: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 80 | memcpy(buf, str, len); | ^~~~~~ ./test2.c:10:1: note: include '' or provide a declaration of 'memcpy' 9 | #include "rexxsaa.h" +++ |+#include 10 | ./test2.c:80:4: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 80 | memcpy(buf, str, len); | ^~~~~~ ./test2.c:80:4: note: include '' or provide a declaration of 'memcpy' ./test2.c: In function 'static_show_parameter': ./test2.c:93:4: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 93 | memcpy(buf,argv[0].strptr,argv[0].strlength); | ^~~~~~ ./test2.c:93:4: note: include '' or provide a declaration of 'memcpy' ./test2.c:95:8: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 95 | if (strcmp(func_name,buf) != 0) | ^~~~~~ ./test2.c:95:8: note: include '' or provide a declaration of 'strcmp' ./test2.c: In function 'global_show_parameter': ./test2.c:109:4: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 109 | memcpy(buf,argv[0].strptr,argv[0].strlength); | ^~~~~~ ./test2.c:109:4: note: include '' or provide a declaration of 'memcpy' ./test2.c: In function 'Test2Function1': ./test2.c:124:4: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 124 | strcpy(retstr->strptr,"0"); | ^~~~~~ ./test2.c:124:4: note: include '' or provide a declaration of 'strcpy' ./test2.c:124:4: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] ./test2.c:124:4: note: include '' or provide a declaration of 'strcpy' ./test2.c: In function 'Test2Function2': ./test2.c:136:4: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 136 | strcpy(retstr->strptr,"0"); | ^~~~~~ ./test2.c:136:4: note: include '' or provide a declaration of 'strcpy' ./test2.c: In function 'Test2DropFuncs': ./test2.c:151:24: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 151 | retstr->strlength = strlen(retstr->strptr); | ^~~~~~ ./test2.c:151:24: note: include '' or provide a declaration of 'strlen' ./test2.c:151:24: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] ./test2.c:151:24: note: include '' or provide a declaration of 'strlen' ./test2.c: In function 'InitRexxSQL': ./test2.c:162:10: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 162 | ULONG rc=0L; | ^~ ./test2.c: In function 'Test2LoadFuncs': ./test2.c:177:24: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 177 | retstr->strlength = strlen(retstr->strptr); | ^~~~~~ ./test2.c:177:24: note: include '' or provide a declaration of 'strlen' gcc -shared -o libtest2.so test2.o -R/opt/pkg/lib gcc -DEXTERNAL_TO_REGINA -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o rxstack.o -c ./rxstack.c ./rxstack.c: In function 'rxstack_delete_queue': ./rxstack.c:569:12: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 569 | int idx,rc; | ^~ ./rxstack.c: In function 'rxstack_send_return': ./rxstack.c:620:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 620 | int rc; | ^~ ./rxstack.c: At top level: ./rxstack.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: rxstack.c,v 1.14 2002/05/14 10:04:57 mark Exp $"; | ^~~~~ ./rxstack.c: In function 'Streng_upper': ./rxstack.c:332:24: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 332 | str->value[i] = (char)toupper( str->value[i] ); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./rexx.h:219, from ./rxstack.c:123: ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ In function 'Streng_upper', inlined from 'rxstack_set_default_queue' at ./rxstack.c:679:27: ./rxstack.c:332:24: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 332 | str->value[i] = (char)toupper( str->value[i] ); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./strings.h: In function 'rxstack_set_default_queue': ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ In function 'Streng_upper', inlined from 'rxstack_create_queue' at ./rxstack.c:840:21: ./rxstack.c:332:24: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 332 | str->value[i] = (char)toupper( str->value[i] ); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./strings.h: In function 'rxstack_create_queue': ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ mv rexxbif.o rexxbif.o.save gcc -DEXTERNAL_TO_REGINA -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -c ./rexxbif.c mv rexxbif.o erexxbif.o mv rexxbif.o.save rexxbif.o mv extstack.o extstack.o.save gcc -DEXTERNAL_TO_REGINA -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -c ./extstack.c ./extstack.c: In function '__regina_read_result_from_rxstack': ./extstack.c:245:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 245 | int rc; | ^~ ./extstack.c: At top level: ./extstack.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: extstack.c,v 1.6 2002/03/23 00:56:47 mark Exp $"; | ^~~~~ ./extstack.c: In function '__regina_parse_queue': ./extstack.c:408:28: warning: array subscript 9 is above array bounds of 'char[4]' [-Warray-bounds=] 408 | (*server_name)->value[9] = '\0'; | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from ./rexx.h:219, from ./extstack.c:24: ./strings.h:33:9: note: while referencing 'value' 33 | char value[4] ; | ^~~~~ ./extstack.c:290:34: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 290 | queue->value[colon_pos] = '\0'; | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ ./extstack.c:283:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 283 | queue->value[at_pos] = '\0'; | ~~~~~~~~~~~~~~~~~~~~~^~~~~~ ./strings.h:33:9: note: at offset 4 into destination object 'value' of size 4 33 | char value[4] ; | ^~~~~ mv extstack.o eextstack.o mv extstack.o.save extstack.o gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -Wl,-R/opt/pkg/lib -o rxstack rxstack.o erexxbif.o eextstack.o -lm -lnsl -lsocket -lcrypt -ldl gcc -DEXTERNAL_TO_REGINA -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o rxqueue.o -c ./rxqueue.c ./rxqueue.c:2:14: warning: 'RCSid' defined but not used [-Wunused-variable] 2 | static char *RCSid = "$Id: rxqueue.c,v 1.4 2002/03/23 00:45:51 mark Exp $"; | ^~~~~ gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -Wl,-R/opt/pkg/lib -o rxqueue rxqueue.o erexxbif.o eextstack.o -lm -lnsl -lsocket -lcrypt -ldl gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o tregina.o -c ./tregina.c gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -o trexx tregina.o libregina.a -lm -lnsl -lsocket -lcrypt -ldl gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -DREGINA_SHARE_DIRECTORY=\"/opt/pkg/share/regina\" -DHAVE_CONFIG_H -I. -I. -o msgcmp.o -c ./msgcmp.c gcc -DNDEBUG -O3 -Wall -fomit-frame-pointer -o msgcmp msgcmp.o ./msgcmp ./en.mts ./pt.mts ./no.mts ./de.mts ./es.mts 248 error messages compiled ./rexx ./checkmts.rexx . de.mts is clean es.mts is clean no.mts is clean pt.mts is clean