Mock Version: 1.4.21 Mock Version: 1.4.21 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/sjasm.spec'], chrootPath='/var/lib/mock/f33-build-140022-42405/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/sjasm.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1580342400 Wrote: /builddir/build/SRPMS/sjasm-0.39-0.27.g1.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/sjasm.spec'], chrootPath='/var/lib/mock/f33-build-140022-42405/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/sjasm.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1580342400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ZpNkHc + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sjasm-0.39 + /usr/bin/mkdir -p sjasm-0.39 + cd sjasm-0.39 + /usr/bin/unzip -qq /builddir/build/SOURCES/sjasm39g1.zip + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (sjasm-0.39-fixmakefile.patch):' Patch #0 (sjasm-0.39-fixmakefile.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file sjasmsrc039g1/Makefile Patch #1 (sjasm-0.39-64bitfix.patch): + echo 'Patch #1 (sjasm-0.39-64bitfix.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file sjasmsrc039g1/loose.cpp + sed -i 's/\r//' sjasm.txt + iconv -f iso8859-1 sjasm.txt -t utf8 + /bin/mv -f sjasm.txt.conv sjasm.txt + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.QP13Gc + umask 022 + cd /builddir/build/BUILD + cd sjasm-0.39 + make -C sjasmsrc039g1 -j4 'CXXFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DMAX_PATH=MAXPATHLEN' make: Entering directory '/builddir/build/BUILD/sjasm-0.39/sjasmsrc039g1' g++ -Wp,-MD,.deps/direct.d -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DMAX_PATH=MAXPATHLEN -c -o direct.o direct.cpp g++ -Wp,-MD,.deps/loose.d -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DMAX_PATH=MAXPATHLEN -c -o loose.o loose.cpp g++ -Wp,-MD,.deps/parser.d -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DMAX_PATH=MAXPATHLEN -c -o parser.o parser.cpp g++ -Wp,-MD,.deps/piz80.d -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DMAX_PATH=MAXPATHLEN -c -o piz80.o piz80.cpp parser.cpp: In function 'int ParseExpPrim(char*&, long int&)': parser.cpp:37:78: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 37 | if (*p=='(') { ++p; res=ParseExpression(p,nval); if (!need(p,')')) { error("')' expected",0); return 0; } } | ^~~~~~~~~~~~~~ parser.cpp:41:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 41 | else if (!(res=getCharConst(p,nval))) { if(synerr) error("Syntax error",p,CATCHALL); return 0; } | ^~~~~~~~~~~~~~ parser.cpp: In function 'int ParseExpUnair(char*&, long int&)': parser.cpp:48:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 48 | if ((oper=need(p,"! ~ + - ")) || (oper=needa(p,"not",'!',"low",'l',"high",'h'))) { | ^~~~~~~~~~ parser.cpp:48:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 48 | if ((oper=need(p,"! ~ + - ")) || (oper=needa(p,"not",'!',"low",'l',"high",'h'))) { | ^~~~~ parser.cpp:48:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 48 | if ((oper=need(p,"! ~ + - ")) || (oper=needa(p,"not",'!',"low",'l',"high",'h'))) { | ^~~~~ parser.cpp:48:70: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 48 | if ((oper=need(p,"! ~ + - ")) || (oper=needa(p,"not",'!',"low",'l',"high",'h'))) { | ^~~~~~ parser.cpp:56:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 56 | default: error("Parser error",0); break; | ^~~~~~~~~~~~~~ parser.cpp: In function 'int ParseExpMul(char*&, long int&)': parser.cpp:66:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 66 | while ((oper=need(p,"* / % ")) || (oper=needa(p,"mod",'%'))) { | ^~~~~~~~ parser.cpp:66:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 66 | while ((oper=need(p,"* / % ")) || (oper=needa(p,"mod",'%'))) { | ^~~~~ parser.cpp:70:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 70 | case '/': if (right) left/=right; else { error("Division by zero",0); left=0; } break; | ^~~~~~~~~~~~~~~~~~ parser.cpp:71:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 71 | case '%': if (right) left%=right; else { error("Division by zero",0); left=0; } break; | ^~~~~~~~~~~~~~~~~~ parser.cpp:72:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 72 | default: error("Parser error",0); break; | ^~~~~~~~~~~~~~ parser.cpp: In function 'int ParseExpAdd(char*&, long int&)': parser.cpp:82:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 82 | while (oper=need(p,"+ - ")) { | ^~~~~~ parser.cpp:82:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 82 | while (oper=need(p,"+ - ")) { | ~~~~^~~~~~~~~~~~~~~ parser.cpp:87:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 87 | default: error("Parser error",0); break; | ^~~~~~~~~~~~~~ direct.cpp: In function 'int ParseDirective()': direct.cpp:37:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 37 | if (!(n=getinstr(lp))) | ^ parser.cpp: In function 'int ParseExpShift(char*&, long int&)': parser.cpp:98:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 98 | while ((oper=need(p,"<<>>")) || (oper=needa(p,"shl",'<'+'<',"shr",'>'))) { | ^~~~~~ direct.cpp: In function 'void dirBYTE()': direct.cpp:71:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 71 | if (!teller) { error(".byte with no arguments",0); return; } | ^~~~~~~~~~~~~~~~~~~~~~~~~ direct.cpp: In function 'void dirDC()': direct.cpp:86:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 86 | if (!teller) { error(".byte with no arguments",0); return; } | ^~~~~~~~~~~~~~~~~~~~~~~~~ parser.cpp:98:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 98 | while ((oper=need(p,"<<>>")) || (oper=needa(p,"shl",'<'+'<',"shr",'>'))) { | ^~~~~ parser.cpp:98:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 98 | while ((oper=need(p,"<<>>")) || (oper=needa(p,"shl",'<'+'<',"shr",'>'))) { | ^~~~~ direct.cpp: In function 'void dirDZ()': direct.cpp:101:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 101 | if (!teller) { error(".byte with no arguments",0); return; } | ^~~~~~~~~~~~~~~~~~~~~~~~~ parser.cpp:106:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 106 | default: error("Parser error",0); break; | ^~~~~~~~~~~~~~ direct.cpp: In function 'void dirABYTE()': direct.cpp:120:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 120 | if (!teller) { error(".abyte with no arguments",0); return; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~ direct.cpp:130:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 130 | } else error("Expression expected",0); | ^~~~~~~~~~~~~~~~~~~~~ direct.cpp: In function 'void dirABYTEC()': direct.cpp:139:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 139 | if (!teller) { error(".abyte with no arguments",0); return; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~ direct.cpp:149:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 149 | } else error("Expression expected",0); | ^~~~~~~~~~~~~~~~~~~~~ direct.cpp: In function 'void dirABYTEZ()': direct.cpp:158:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 158 | if (!teller) { error(".abyte with no arguments",0); return; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~ parser.cpp: In function 'int ParseExpMinMax(char*&, long int&)': parser.cpp:116:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 116 | while (oper=need(p,"?")) { | ^~~~~~ parser.cpp:116:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 116 | while (oper=need(p,"?")) { | ~~~~^~~~~~~~~~~~~~~ direct.cpp:169:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 169 | } else error("Expression expected",0); | ^~~~~~~~~~~~~~~~~~~~~ parser.cpp:121:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 121 | default: error("Parser error",0); break; | ^~~~~~~~~~~~~~ direct.cpp: In function 'void dirWORD()': direct.cpp:179:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 179 | if (teller>127) error("Over 128 values in .word",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ direct.cpp:181:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 181 | } else { error("Syntax error",lp,CATCHALL); return; } | ^~~~~~~~~~~~~~ direct.cpp:187:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 187 | if (!teller) { error(".word with no arguments",0); return; } | ^~~~~~~~~~~~~~~~~~~~~~~~~ parser.cpp: In function 'int ParseExpCmp(char*&, long int&)': parser.cpp:131:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 131 | while (oper=need(p,"<=>=< > ")) { | ^~~~~~~~~~ direct.cpp: In function 'void dirDWORD()': direct.cpp:205:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 205 | if (teller>127) error("Over 128 values in .dword",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ direct.cpp:207:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 207 | } else { error("Syntax error",lp,CATCHALL); return; } | ^~~~~~~~~~~~~~ parser.cpp:131:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 131 | while (oper=need(p,"<=>=< > ")) { | ~~~~^~~~~~~~~~~~~~~~~~~ direct.cpp:213:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 213 | if (!teller) { error(".dword with no arguments",0); return; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~ direct.cpp: In function 'void dirD24()': direct.cpp:232:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 232 | if (teller>127) error("Over 128 values in .d24",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~ parser.cpp:138:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 138 | default: error("Parser error",0); break; | ^~~~~~~~~~~~~~ direct.cpp:234:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 234 | } else { error("Syntax error",lp,CATCHALL); return; } | ^~~~~~~~~~~~~~ direct.cpp:240:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 240 | if (!teller) { error(".d24 with no arguments",0); return; } | ^~~~~~~~~~~~~~~~~~~~~~~~ parser.cpp: In function 'int ParseExpEqu(char*&, long int&)': parser.cpp:148:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 148 | while (oper=need(p,"=_==!=")) { | ^~~~~~~~ parser.cpp:148:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 148 | while (oper=need(p,"=_==!=")) { | ~~~~^~~~~~~~~~~~~~~~~ direct.cpp: In function 'void dirBLOCK()': direct.cpp:255:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 255 | if ((signed)teller<0) error("Negative .block?",0,FATAL); | ^~~~~~~~~~~~~~~~~~ direct.cpp:266:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 266 | } else error("Syntax Error",lp,CATCHALL); | ^~~~~~~~~~~~~~ direct.cpp: In function 'void dirORG()': direct.cpp:274:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 274 | if (ParseExpression(lp,val)) adres=val; else error("Syntax error",0,CATCHALL); | ^~~~~~~~~~~~~~ parser.cpp:154:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 154 | default: error("Parser error",0); break; | ^~~~~~~~~~~~~~ direct.cpp: In function 'void dirMAP()': direct.cpp:284:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 284 | if (ParseExpression(lp,val)) mapadr=val; else error("Syntax error",0,CATCHALL); | ^~~~~~~~~~~~~~ parser.cpp: In function 'int ParseExpBitAnd(char*&, long int&)': parser.cpp:163:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 163 | while (need(p,"&_") || needa(p,"and",'&')) { | ^~~~ direct.cpp:285:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 285 | if (labelnotfound) error("Forward reference",0,ALL); | ^~~~~~~~~~~~~~~~~~~ direct.cpp: In function 'void dirENDMAP()': direct.cpp:293:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 293 | else error(".endmodule without module",0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ parser.cpp:163:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 163 | while (need(p,"&_") || needa(p,"and",'&')) { | ^~~~~ direct.cpp: In function 'void dirALIGN()': direct.cpp:308:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 308 | error("Illegal align",0); break; | ^~~~~~~~~~~~~~~ direct.cpp: In function 'void dirMODULE()': direct.cpp:319:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 319 | if (n=getid(lp)) modlabp=n; else error("Syntax error",0,CATCHALL); | ~^~~~~~~~~~ direct.cpp:319:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 319 | if (n=getid(lp)) modlabp=n; else error("Syntax error",0,CATCHALL); | ^~~~~~~~~~~~~~ parser.cpp: In function 'int ParseExpBitXor(char*&, long int&)': parser.cpp:173:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 173 | while (need(p,"^ ") || needa(p,"xor",'^')) { | ^~~~ direct.cpp: In function 'void dirENDMODULE()': direct.cpp:327:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 327 | else error(".endmodule without module",0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ parser.cpp:173:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 173 | while (need(p,"^ ") || needa(p,"xor",'^')) { | ^~~~~ direct.cpp: In function 'void dirARM()': direct.cpp:349:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 349 | error("No ARM support in this version",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ direct.cpp: In function 'void dirTHUMB()': direct.cpp:361:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 361 | error("No ARM support in this version",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ direct.cpp: In function 'void dirSIZE()': direct.cpp:377:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 377 | if (!ParseExpression(lp,val)) { error("Syntax error",bp,CATCHALL); return; } | ^~~~~~~~~~~~~~ parser.cpp: In function 'int ParseExpBitOr(char*&, long int&)': parser.cpp:183:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 183 | while (need(p,"|_") || needa(p,"or",'|')) { | ^~~~ direct.cpp:379:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 379 | if (size!=(aint)-1) { error("Multiple sizes?",0); return; } | ^~~~~~~~~~~~~~~~~ parser.cpp:183:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 183 | while (need(p,"|_") || needa(p,"or",'|')) { | ^~~~ direct.cpp: In function 'void dirINCBIN()': direct.cpp:393:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 393 | if (!ParseExpression(lp,val)) { error("Syntax error",bp,CATCHALL); return; } | ^~~~~~~~~~~~~~ direct.cpp:394:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 394 | if (val<0) { error("Negative values are not allowed",bp); return; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ parser.cpp: In function 'int ParseExpLogAnd(char*&, long int&)': parser.cpp:193:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 193 | while (need(p,"&&")) { | ^~~~ direct.cpp:398:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 398 | if (!ParseExpression(lp,val)) { error("Syntax error",bp,CATCHALL); return; } | ^~~~~~~~~~~~~~ direct.cpp:399:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 399 | if (val<0) { error("Negative values are not allowed",bp); return; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ parser.cpp: In function 'int ParseExpLogOr(char*&, long int&)': parser.cpp:203:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 203 | while (need(p,"||")) { | ^~~~ direct.cpp: In function 'void dirTEXTAREA()': direct.cpp:412:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 412 | if (!ParseExpression(lp,val)) { error("No adress given",0); return; } | ^~~~~~~~~~~~~~~~~ direct.cpp:413:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 413 | if (labelnotfound) error("Forward reference",0,ALL); | ^~~~~~~~~~~~~~~~~~~ parser.cpp: In function 'char* ReplaceDefine(char*)': parser.cpp:220:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 220 | if (++replacedefineteller>20) error("Over 20 defines nested",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~ direct.cpp:415:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 415 | adres=val; if (ReadFile()!=ENDTEXTAREA) error("No end of textarea",0); | ^~~~~~~~~~~~~~~~~~~~ parser.cpp:234:53: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 234 | if (a!='\'' || (*(lp-2)!='f' || *(lp-3)!='a') && (*(lp-2)!='F' && *(lp-3)!='A')) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ parser.cpp:240:11: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 240 | if (!comlin && !comnxtlin) ++rp; ++lp; | ^~ parser.cpp:240:44: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 240 | if (!comlin && !comnxtlin) ++rp; ++lp; | ^~ parser.cpp:250:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 250 | while (*rp=*ver) { ++rp; ++ver; } | ~~~^~~~~ direct.cpp: In function 'void dirIF()': direct.cpp:425:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 425 | if (!ParseExpression(lp,val)) { error("Syntax error",0,CATCHALL); return; } | ^~~~~~~~~~~~~~ direct.cpp:426:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 426 | if (labelnotfound) error("Forward reference",0,ALL); | ^~~~~~~~~~~~~~~~~~~ parser.cpp:252:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 252 | if (strlen(nl)>LINEMAX-1) error("line too long after macro expansion",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ direct.cpp:430:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 430 | case ELSE: if (SkipFile()!=ENDIF) error("No endif",0); break; | ^~~~~~~~~~ parser.cpp: In function 'void ParseLabel()': parser.cpp:272:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 272 | error("Numberlabels only allowed as adresslabels",0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ direct.cpp:432:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 432 | default: error("No endif!",0); break; | ^~~~~~~~~~~ parser.cpp:282:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 282 | if (!ParseExpression(lp,val)) { error("Expression error",lp); val=0; } | ^~~~~~~~~~~~~~~~~~ parser.cpp:283:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 283 | if (labelnotfound) { error("Forward reference",0,PASS1); } | ^~~~~~~~~~~~~~~~~~~ parser.cpp:288:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 288 | if (labelnotfound) error("Forward reference",0,PASS1); | ^~~~~~~~~~~~~~~~~~~ direct.cpp:438:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 438 | case ELSE: if (ReadFile()!=ENDIF) error("No endif",0); break; | ^~~~~~~~~~ direct.cpp:440:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 440 | default: error("No endif!",0); break; | ^~~~~~~~~~~ parser.cpp:305:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 305 | if (!getLabelValue(ttp,oval)) error("Internal error. ParseLabel()",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ parser.cpp:306:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 306 | if (val!=oval) error("Label has different value in pass 2",temp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ parser.cpp:308:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 308 | if (!labtab.insert(tp,val)) error("Duplicate label",tp,PASS1); | ^~~~~~~~~~~~~~~~~ direct.cpp: In function 'void dirELSE()': direct.cpp:447:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 447 | error("Else without if",0); | ^~~~~~~~~~~~~~~~~ parser.cpp: In function 'void ParseMacro()': parser.cpp:331:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 331 | if (structtab.emit(n,0,p,gl) || !gl && macrotab.emit(n,p)) *lp=0; | ~~~~^~~~~~~~~~~~~~~~~~~~~ direct.cpp: In function 'void dirENDIF()': direct.cpp:451:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 451 | error("Endif without if",0); | ^~~~~~~~~~~~~~~~~~ direct.cpp: In function 'void dirENDTEXTAREA()': direct.cpp:455:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 455 | error("Endt without textarea",0); | ^~~~~~~~~~~~~~~~~~~~~~~ parser.cpp: In function 'void ParseLine()': parser.cpp:355:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 355 | if (*lp) error("Unexpected",lp); ListFile(); | ^~~~~~~~~~~~ parser.cpp:355:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 355 | if (*lp) error("Unexpected",lp); ListFile(); | ^~ parser.cpp:355:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 355 | if (*lp) error("Unexpected",lp); ListFile(); | ^~~~~~~~ parser.cpp: In function 'void ParseStructLabel(structcls*)': parser.cpp:366:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 366 | if (isdigit(*tp)) { error("Numberlabels not allowed within structs",0); return; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ direct.cpp: In function 'void dirOUTPUT()': direct.cpp:481:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 481 | else error("Syntax error",bp,CATCHALL); | ^~~~~~~~~~~~~~ direct.cpp: In function 'void dirDEFINE()': direct.cpp:493:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 493 | if (!*p) error("define error",0,FATAL); | ^~~~~~~~~~~~~~ parser.cpp: In function 'void ParseInSTRUCTion(structcls*)': parser.cpp:376:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 376 | if (!ParseExpression(lp,len)) { len=1; error("Expression expected",0,PASS1); } | ^~~~~~~~~~~~~~~~~~~~~ parser.cpp:378:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 378 | if (!ParseExpression(lp,val)) { val=0; error("Expression expected",0,PASS1); } | ^~~~~~~~~~~~~~~~~~~~~ direct.cpp:498:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 498 | if (!cmphstr(p,"define")) error("define error",0,FATAL); | ^~~~~~~~ direct.cpp:498:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 498 | if (!cmphstr(p,"define")) error("define error",0,FATAL); | ^~~~~~~~~~~~~~ direct.cpp:499:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 499 | if (!(id=getid(p))) { error("illegal define",0); return; } | ^~~~~~~~~~~~~~~~ parser.cpp:385:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 385 | if (!ParseExpression(lp,val)) val=0; check8(val); | ^~ parser.cpp:385:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 385 | if (!ParseExpression(lp,val)) val=0; check8(val); | ^~~~~~ piz80.cpp: In function 'void piZ80()': piz80.cpp:50:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 50 | error ("Unrecognized instruction",lp); return; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ piz80.cpp:42:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 42 | if (!(n=getinstr(lp))) | ^ parser.cpp:390:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 390 | if (!ParseExpression(lp,val)) val=0; check16(val); | ^~ parser.cpp:390:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 390 | if (!ParseExpression(lp,val)) val=0; check16(val); | ^~~~~~~ direct.cpp: In function 'void dirIFDEF()': direct.cpp:507:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 507 | if (!*p) error("ifdef error",0,FATAL); | ^~~~~~~~~~~~~ parser.cpp:395:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 395 | if (!ParseExpression(lp,val)) val=0; check24(val); | ^~ parser.cpp:395:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 395 | if (!ParseExpression(lp,val)) val=0; check24(val); | ^~~~~~~ direct.cpp:512:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 512 | if (!cmphstr(p,"ifdef")) error("ifdef error",0,FATAL); | ^~~~~~~ direct.cpp:512:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 512 | if (!cmphstr(p,"ifdef")) error("ifdef error",0,FATAL); | ^~~~~~~~~~~~~ piz80.cpp:52:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 52 | if (!z80funtab.zoek(n)) { error ("Unrecognized instruction",bp); *lp=0; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~ direct.cpp:514:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 514 | if (!(id=getid(p))) { error("Illegal identifier",0,PASS1); return; } | ^~~~~~~~~~~~~~~~~~~~ direct.cpp:518:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 518 | case ELSE: if (SkipFile()!=ENDIF) error("No endif",0); break; | ^~~~~~~~~~ direct.cpp:520:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 520 | default: error("No endif!",0); break; | ^~~~~~~~~~~ piz80.cpp: In function 'int z80getbyte(char*&)': piz80.cpp:57:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 57 | if (!ParseExpression(p,val)) { error("Operand expected",NULL); return 0; } | ^~~~~~~~~~~~~~~~~~ direct.cpp:526:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 526 | case ELSE: if (ReadFile()!=ENDIF) error("No endif",0); break; | ^~~~~~~~~~ direct.cpp:528:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 528 | default: error("No endif!",0); break; | ^~~~~~~~~~~ parser.cpp: In function 'void ParseStructLine(structcls*)': parser.cpp:425:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 425 | if (*lp) error("Unexpected",lp); | ^~~~~~~~~~~~ direct.cpp: In function 'void dirIFNDEF()': direct.cpp:537:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 537 | if (!*p) error("ifndef error",0,FATAL); | ^~~~~~~~~~~~~~ piz80.cpp: In function 'int z80getword(char*&)': piz80.cpp:64:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 64 | if (!ParseExpression(p,val)) { error("Operand expected",NULL); return 0; } | ^~~~~~~~~~~~~~~~~~ direct.cpp:542:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 542 | if (!cmphstr(p,"ifndef")) error("ifndef error",0,FATAL); | ^~~~~~~~ direct.cpp:542:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 542 | if (!cmphstr(p,"ifndef")) error("ifndef error",0,FATAL); | ^~~~~~~~~~~~~~ direct.cpp:544:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 544 | if (!(id=getid(p))) { error("Illegal identifier",0,PASS1); return; } | ^~~~~~~~~~~~~~~~~~~~ direct.cpp:548:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 548 | case ELSE: if (SkipFile()!=ENDIF) error("No endif",0); break; | ^~~~~~~~~~ direct.cpp:550:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 550 | default: error("No endif!",0); break; | ^~~~~~~~~~~ piz80.cpp: In function 'int z80getidxoffset(char*&)': piz80.cpp:75:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 75 | if (!ParseExpression(p,val)) { error("Operand expected",NULL); return 0; } | ^~~~~~~~~~~~~~~~~~ direct.cpp:556:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 556 | case ELSE: if (ReadFile()!=ENDIF) error("No endif",0); break; | ^~~~~~~~~~ direct.cpp:558:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 558 | default: error("No endif!",0); break; | ^~~~~~~~~~~ direct.cpp: In function 'void dirEXPORT()': direct.cpp:568:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 568 | if (!(n=p=getid(lp))) { error("Syntax error",lp,CATCHALL); return; } | ^~~~~~~~~~~~~~ direct.cpp:570:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 570 | getLabelValue(n,val); if (labelnotfound) { error("Label not found",p,SUPPRES); return; } | ^~~~~~~~~~~~~~~~~ piz80.cpp: In function 'int z80getadres(char*&, long int&)': piz80.cpp:83:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 83 | error("Operand expected",0,CATCHALL); | ^~~~~~~~~~~~~~~~~~ direct.cpp: In function 'void dirMACRO()': direct.cpp:579:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 579 | if (lijst) error("No macro definitions allowed here",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ direct.cpp:581:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 581 | if (!(n=getid(lp))) { error("Illegal macroname",0,PASS1); return; } | ^~~~~~~~~~~~~~~~~~~ direct.cpp: In function 'void dirENDM()': direct.cpp:586:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 586 | error("End macro without macro",0); | ^~~~~~~~~~~~~~~~~~~~~~~~~ direct.cpp: In function 'void dirENDS()': direct.cpp:590:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 590 | error("End structre without structure",0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ direct.cpp: In function 'void dirASSERT()': direct.cpp:596:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 596 | if (!ParseExpression(lp,val)) { error("Syntax error",0,CATCHALL); return; } | ^~~~~~~~~~~~~~ direct.cpp:597:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 597 | if (pass==2 && !val) error("Assertion failed",p); | ^~~~~~~~~~~~~~~~~~ direct.cpp: In function 'void dirSTRUCT()': direct.cpp:611:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 611 | if (!(naam=getid(lp))) { error("Illegal structurename",0,PASS1); return; } | ^~~~~~~~~~~~~~~~~~~~~~~ direct.cpp:614:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 614 | if (!ParseExpression(lp,offset)) { error("Syntax error",0,CATCHALL); return; } | ^~~~~~~~~~~~~~ direct.cpp:615:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 615 | if (labelnotfound) error("Forward reference",0,ALL); | ^~~~~~~~~~~~~~~~~~~ direct.cpp:620:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 620 | if (!ReadLine()) { error("Unexpected end of structure",0,PASS1); break; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ direct.cpp:621:80: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 621 | lp=line; if (white()) { skipblanks(lp); if (*lp=='.') ++lp; if (cmphstr(lp,"ends")) break; } | ^~~~~~ direct.cpp: In function 'void dirFORG()': direct.cpp:633:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 633 | if (!ParseExpression(lp,val)) error("Syntax error",0,CATCHALL); | ^~~~~~~~~~~~~~ direct.cpp: In function 'void dirREPT()': direct.cpp:648:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 648 | if (!ParseExpression(lp,val)) { error("Syntax error",0,CATCHALL); return; } | ^~~~~~~~~~~~~~ direct.cpp:649:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 649 | if (labelnotfound) error("Forward reference",0,ALL); | ^~~~~~~~~~~~~~~~~~~ direct.cpp:650:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 650 | if ((int)val<0) { error("Illegal repeat value",0,CATCHALL); return; } | ^~~~~~~~~~~~~~~~~~~~~~ direct.cpp:652:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 652 | if (!ReadFileToStringLst(f,"endm")) error("Unexpected end of repeat",0,PASS1); | ^~~~~~ direct.cpp:652:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 652 | if (!ReadFileToStringLst(f,"endm")) error("Unexpected end of repeat",0,PASS1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ direct.cpp: In function 'void InsertDirectives()': direct.cpp:660:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 660 | dirtab.insertd("assert",dirASSERT); | ^~~~~~~~ direct.cpp:661:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 661 | dirtab.insertd("byte",dirBYTE); | ^~~~~~ direct.cpp:662:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 662 | dirtab.insertd("abyte",dirABYTE); | ^~~~~~~ direct.cpp:663:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 663 | dirtab.insertd("abytec",dirABYTEC); | ^~~~~~~~ direct.cpp:664:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 664 | dirtab.insertd("abytez",dirABYTEZ); | ^~~~~~~~ direct.cpp:665:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 665 | dirtab.insertd("word",dirWORD); | ^~~~~~ direct.cpp:666:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 666 | dirtab.insertd("block",dirBLOCK); | ^~~~~~~ direct.cpp:667:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 667 | dirtab.insertd("dword",dirDWORD); | ^~~~~~~ direct.cpp:668:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 668 | dirtab.insertd("d24",dirD24); | ^~~~~ direct.cpp:669:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 669 | dirtab.insertd("org",dirORG); | ^~~~~ direct.cpp:670:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 670 | dirtab.insertd("map",dirMAP); | ^~~~~ direct.cpp:671:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 671 | dirtab.insertd("align",dirALIGN); | ^~~~~~~ direct.cpp:672:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 672 | dirtab.insertd("module",dirMODULE); | ^~~~~~~~ direct.cpp:673:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 673 | dirtab.insertd("z80",dirZ80); | ^~~~~ direct.cpp:674:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 674 | dirtab.insertd("arm",dirARM); | ^~~~~ direct.cpp:675:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 675 | dirtab.insertd("thumb",dirTHUMB); | ^~~~~~~ direct.cpp:676:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 676 | dirtab.insertd("size",dirSIZE); | ^~~~~~ direct.cpp:677:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 677 | dirtab.insertd("textarea",dirTEXTAREA); | ^~~~~~~~~~ direct.cpp:678:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 678 | dirtab.insertd("phase",dirTEXTAREA); | ^~~~~~~ direct.cpp:679:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 679 | dirtab.insertd("msx",dirZ80); | ^~~~~ direct.cpp:680:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 680 | dirtab.insertd("else",dirELSE); | ^~~~~~ direct.cpp:681:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 681 | dirtab.insertd("export",dirEXPORT); | ^~~~~~~~ direct.cpp:682:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 682 | dirtab.insertd("end",dirEND); | ^~~~~ direct.cpp:683:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 683 | dirtab.insertd("include",dirINCLUDE); | ^~~~~~~~~ direct.cpp:684:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 684 | dirtab.insertd("incbin",dirINCBIN); | ^~~~~~~~ direct.cpp:685:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 685 | dirtab.insertd("if",dirIF); | ^~~~ direct.cpp:686:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 686 | dirtab.insertd("output",dirOUTPUT); | ^~~~~~~~ direct.cpp:687:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 687 | dirtab.insertd("define",dirDEFINE); | ^~~~~~~~ direct.cpp:688:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 688 | dirtab.insertd("ifdef",dirIFDEF); | ^~~~~~~ direct.cpp:689:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 689 | dirtab.insertd("ifndef",dirIFNDEF); | ^~~~~~~~ direct.cpp:690:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 690 | dirtab.insertd("macro",dirMACRO); | ^~~~~~~ direct.cpp:691:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 691 | dirtab.insertd("struct",dirSTRUCT); | ^~~~~~~~ direct.cpp:692:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 692 | dirtab.insertd("dc",dirDC); | ^~~~ direct.cpp:693:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 693 | dirtab.insertd("dz",dirDZ); | ^~~~ direct.cpp:694:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 694 | dirtab.insertd("db",dirBYTE); | ^~~~ direct.cpp:695:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 695 | dirtab.insertd("dw",dirWORD); | ^~~~ direct.cpp:696:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 696 | dirtab.insertd("ds",dirBLOCK); | ^~~~ direct.cpp:697:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 697 | dirtab.insertd("dd",dirDWORD); | ^~~~ direct.cpp:698:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 698 | dirtab.insertd("dm",dirBYTE); | ^~~~ direct.cpp:699:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 699 | dirtab.insertd("defb",dirBYTE); | ^~~~~~ direct.cpp:700:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 700 | dirtab.insertd("defw",dirWORD); | ^~~~~~ direct.cpp:701:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 701 | dirtab.insertd("defs",dirBLOCK); | ^~~~~~ direct.cpp:702:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 702 | dirtab.insertd("defd",dirDWORD); | ^~~~~~ direct.cpp:703:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 703 | dirtab.insertd("defm",dirBYTE); | ^~~~~~ direct.cpp:704:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 704 | dirtab.insertd("endmod",dirENDMODULE); | ^~~~~~~~ direct.cpp:705:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 705 | dirtab.insertd("endmodule",dirENDMODULE); | ^~~~~~~~~~~ direct.cpp:706:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 706 | dirtab.insertd("endmap",dirENDMAP); | ^~~~~~~~ direct.cpp:707:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 707 | dirtab.insertd("rept",dirREPT); | ^~~~~~ direct.cpp:708:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 708 | dirtab.insertd("fpos",dirFORG); | ^~~~~~ direct.cpp:710:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 710 | dirtab.insertd("endif",dirENDIF); | ^~~~~~~ direct.cpp:711:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 711 | dirtab.insertd("endt",dirENDTEXTAREA); | ^~~~~~ direct.cpp:712:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 712 | dirtab.insertd("dephase",dirENDTEXTAREA); | ^~~~~~~~~ direct.cpp:713:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 713 | dirtab.insertd("endm",dirENDM); | ^~~~~~ direct.cpp:714:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 714 | dirtab.insertd("ends",dirENDS); | ^~~~~~ piz80.cpp: In function 'void pizADC()': piz80.cpp:242:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 242 | if (!comma(lp)) { error("Comma expected",0); break; } | ^~~~~~~~~~~~~~~~ piz80.cpp: In function 'void pizADD()': piz80.cpp:294:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 294 | if (!comma(lp)) { error("Comma expected",0); break; } | ^~~~~~~~~~~~~~~~ piz80.cpp:304:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 304 | if (!comma(lp)) { error("Comma expected",0); break; } | ^~~~~~~~~~~~~~~~ piz80.cpp:314:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 314 | if (!comma(lp)) { error("Comma expected",0); break; } | ^~~~~~~~~~~~~~~~ piz80.cpp: In function 'void pizCALL()': piz80.cpp:447:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 447 | if (b>65535) error("Bytes lost",0); | ^~~~~~~~~~~~ piz80.cpp: In function 'void pizDEC()': piz80.cpp:563:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 563 | if (cparen(lp)) e[0]=0x35; break; | ^~ piz80.cpp:563:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 563 | if (cparen(lp)) e[0]=0x35; break; | ^~~~~ piz80.cpp: In function 'void pizEX()': piz80.cpp:612:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 612 | if (!comma(lp)) { error("Comma expected",0); break; } | ^~~~~~~~~~~~~~~~ piz80.cpp:620:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 620 | if (!comma(lp)) { error("Comma expected",0); break; } | ^~~~~~~~~~~~~~~~ piz80.cpp: In function 'void pizINC()': piz80.cpp:716:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 716 | if (cparen(lp)) e[0]=0x34; break; | ^~ piz80.cpp:716:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 716 | if (cparen(lp)) e[0]=0x34; break; | ^~~~~ piz80.cpp: In function 'void pizJP()': piz80.cpp:793:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 793 | if (b>65535) error("Bytes lost",0); | ^~~~~~~~~~~~ piz80.cpp: In function 'void pizJR()': piz80.cpp:807:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 807 | case Z80C_M: case Z80C_P: case Z80C_PE: case Z80C_PO: error("Illegal condition",0); break; | ^~~~~~~~~~~~~~~~~~~ piz80.cpp: In function 'void pizLD()': piz80.cpp:1112:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1112 | if ((b=z80getidxoffset(lp))==127) error("Offset out of range",0); | ^~~~~~~~~~~~~~~~~~~~~ piz80.cpp:1113:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1113 | if (cparen(lp)) e[0]=e[3]=reg; e[1]=0x4e; e[4]=0x46; e[2]=b; e[5]=b+1; break; | ^~ piz80.cpp:1113:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1113 | if (cparen(lp)) e[0]=e[3]=reg; e[1]=0x4e; e[4]=0x46; e[2]=b; e[5]=b+1; break; | ^ piz80.cpp:1145:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1145 | if ((b=z80getidxoffset(lp))==127) error("Offset out of range",0); | ^~~~~~~~~~~~~~~~~~~~~ piz80.cpp:1146:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1146 | if (cparen(lp)) e[0]=e[3]=reg; e[1]=0x5e; e[4]=0x56; e[2]=b; e[5]=b+1; break; | ^~ piz80.cpp:1146:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1146 | if (cparen(lp)) e[0]=e[3]=reg; e[1]=0x5e; e[4]=0x56; e[2]=b; e[5]=b+1; break; | ^ piz80.cpp:1177:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1177 | if ((b=z80getidxoffset(lp))==127) error("Offset out of range",0); | ^~~~~~~~~~~~~~~~~~~~~ piz80.cpp:1178:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1178 | if (cparen(lp)) e[0]=e[3]=reg; e[1]=0x6e; e[4]=0x66; e[2]=b; e[5]=b+1; break; | ^~ piz80.cpp:1178:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1178 | if (cparen(lp)) e[0]=e[3]=reg; e[1]=0x6e; e[4]=0x66; e[2]=b; e[5]=b+1; break; | ^ piz80.cpp:1208:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1208 | if (beginhaakje=oparen(lp,'(')) olp=--lp; | ~~~~~~~~~~~^~~~~~~~~~~~~~~ piz80.cpp:1228:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1228 | if (beginhaakje=oparen(lp,'(')) olp=--lp; | ~~~~~~~~~~~^~~~~~~~~~~~~~~ piz80.cpp:1277:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1277 | if (e[2]==127) error("Offset out of range",0); | ^~~~~~~~~~~~~~~~~~~~~ piz80.cpp:1280:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1280 | if (e[2]==127) error("Offset out of range",0); | ^~~~~~~~~~~~~~~~~~~~~ piz80.cpp:1283:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1283 | if (e[2]==127) error("Offset out of range",0); | ^~~~~~~~~~~~~~~~~~~~~ piz80.cpp:1302:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1302 | if (e[2]==127) error("Offset out of range",0); | ^~~~~~~~~~~~~~~~~~~~~ piz80.cpp:1305:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1305 | if (e[2]==127) error("Offset out of range",0); | ^~~~~~~~~~~~~~~~~~~~~ piz80.cpp:1308:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1308 | if (e[2]==127) error("Offset out of range",0); | ^~~~~~~~~~~~~~~~~~~~~ piz80.cpp: In function 'void pizLDD()': piz80.cpp:1370:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1370 | if (getz80reg(lp)==Z80_A) e[0]=reg-14; e[1]=reg-5; | ^~ piz80.cpp:1370:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1370 | if (getz80reg(lp)==Z80_A) e[0]=reg-14; e[1]=reg-5; | ^ piz80.cpp: In function 'void pizLDI()': piz80.cpp:1473:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1473 | if (getz80reg(lp)==Z80_A) e[0]=reg-14; e[1]=reg-13; | ^~ piz80.cpp:1473:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1473 | if (getz80reg(lp)==Z80_A) e[0]=reg-14; e[1]=reg-13; | ^ piz80.cpp: In function 'void pizOUT()': piz80.cpp:1630:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1630 | if (!z80getbyte(lp)) e[0]=0xed; e[1]=0x71; break; | ^~ piz80.cpp:1630:45: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1630 | if (!z80getbyte(lp)) e[0]=0xed; e[1]=0x71; break; | ^ piz80.cpp: In function 'void pizRES()': piz80.cpp:1720:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1720 | default: error("Illegal operand",lp,SUPPRES); | ^~~~~~~~~~~~~~~~~ piz80.cpp: In function 'void pizRL()': piz80.cpp:1792:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1792 | default: error("Illegal operand",lp,SUPPRES); | ^~~~~~~~~~~~~~~~~ piz80.cpp: In function 'void pizRLC()': piz80.cpp:1829:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1829 | default: error("Illegal operand",lp,SUPPRES); | ^~~~~~~~~~~~~~~~~ piz80.cpp: In function 'void pizRR()': piz80.cpp:1880:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1880 | default: error("Illegal operand",lp,SUPPRES); | ^~~~~~~~~~~~~~~~~ piz80.cpp: In function 'void pizRRC()': piz80.cpp:1917:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1917 | default: error("Illegal operand",lp,SUPPRES); | ^~~~~~~~~~~~~~~~~ piz80.cpp: In function 'void pizRST()': piz80.cpp:1950:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1950 | default: error("Illegal operand",line); *lp=0; return; | ^~~~~~~~~~~~~~~~~ piz80.cpp: In function 'void pizSBC()': piz80.cpp:1961:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1961 | if (!comma(lp)) { error("Comma expected",0); break; } | ^~~~~~~~~~~~~~~~ piz80.cpp: In function 'void pizSET()': piz80.cpp:2036:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2036 | default: error("Illegal operand",lp,SUPPRES); | ^~~~~~~~~~~~~~~~~ piz80.cpp: In function 'void pizSLA()': piz80.cpp:2076:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2076 | default: error("Illegal operand",lp,SUPPRES); | ^~~~~~~~~~~~~~~~~ piz80.cpp: In function 'void pizSLL()': piz80.cpp:2115:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2115 | default: error("Illegal operand",lp,SUPPRES); | ^~~~~~~~~~~~~~~~~ piz80.cpp: In function 'void pizSRA()': piz80.cpp:2154:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2154 | default: error("Illegal operand",lp,SUPPRES); | ^~~~~~~~~~~~~~~~~ piz80.cpp: In function 'void pizSRL()': piz80.cpp:2193:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2193 | default: error("Illegal operand",lp,SUPPRES); | ^~~~~~~~~~~~~~~~~ piz80.cpp: In function 'void pizSUB()': piz80.cpp:2210:12: warning: enumeration value 'Z80_B' not handled in switch [-Wswitch] 2210 | switch (getz80reg(lp)) { | ^ piz80.cpp:2210:12: warning: enumeration value 'Z80_C' not handled in switch [-Wswitch] piz80.cpp:2210:12: warning: enumeration value 'Z80_D' not handled in switch [-Wswitch] piz80.cpp:2210:12: warning: enumeration value 'Z80_E' not handled in switch [-Wswitch] piz80.cpp:2210:12: warning: enumeration value 'Z80_H' not handled in switch [-Wswitch] piz80.cpp:2210:12: warning: enumeration value 'Z80_L' not handled in switch [-Wswitch] piz80.cpp:2210:12: warning: enumeration value 'Z80_A' not handled in switch [-Wswitch] piz80.cpp:2210:12: warning: enumeration value 'Z80_I' not handled in switch [-Wswitch] piz80.cpp:2210:12: warning: enumeration value 'Z80_R' not handled in switch [-Wswitch] piz80.cpp:2210:12: warning: enumeration value 'Z80_F' not handled in switch [-Wswitch] piz80.cpp:2210:12: warning: enumeration value 'Z80_IXH' not handled in switch [-Wswitch] piz80.cpp:2210:12: warning: enumeration value 'Z80_IXL' not handled in switch [-Wswitch] piz80.cpp:2210:12: warning: enumeration value 'Z80_IYH' not handled in switch [-Wswitch] piz80.cpp:2210:12: warning: enumeration value 'Z80_IYL' not handled in switch [-Wswitch] piz80.cpp:2210:12: warning: enumeration value 'Z80_AF' not handled in switch [-Wswitch] piz80.cpp:2210:12: warning: enumeration value 'Z80_IX' not handled in switch [-Wswitch] piz80.cpp:2210:12: warning: enumeration value 'Z80_IY' not handled in switch [-Wswitch] piz80.cpp:2210:12: warning: enumeration value 'Z80_UNK' not handled in switch [-Wswitch] piz80.cpp: In function 'void InitpiZ80()': piz80.cpp:2297:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2297 | z80funtab.insert("adc",pizADC); | ^~~~~ piz80.cpp:2298:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2298 | z80funtab.insert("add",pizADD); | ^~~~~ piz80.cpp:2299:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2299 | z80funtab.insert("and",pizAND); | ^~~~~ piz80.cpp:2300:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2300 | z80funtab.insert("bit",pizBIT); | ^~~~~ piz80.cpp:2301:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2301 | z80funtab.insert("call",pizCALL); | ^~~~~~ piz80.cpp:2302:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2302 | z80funtab.insert("ccf",pizCCF); | ^~~~~ piz80.cpp:2303:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2303 | z80funtab.insert("cp",pizCP); | ^~~~ piz80.cpp:2304:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2304 | z80funtab.insert("cpd",pizCPD); | ^~~~~ piz80.cpp:2305:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2305 | z80funtab.insert("cpdr",pizCPDR); | ^~~~~~ piz80.cpp:2306:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2306 | z80funtab.insert("cpi",pizCPI); | ^~~~~ piz80.cpp:2307:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2307 | z80funtab.insert("cpir",pizCPIR); | ^~~~~~ piz80.cpp:2308:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2308 | z80funtab.insert("cpl",pizCPL); | ^~~~~ piz80.cpp:2309:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2309 | z80funtab.insert("daa",pizDAA); | ^~~~~ piz80.cpp:2310:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2310 | z80funtab.insert("dec",pizDEC); | ^~~~~ piz80.cpp:2311:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2311 | z80funtab.insert("di",pizDI); | ^~~~ piz80.cpp:2312:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2312 | z80funtab.insert("djnz",pizDJNZ); | ^~~~~~ piz80.cpp:2313:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2313 | z80funtab.insert("ei",pizEI); | ^~~~ piz80.cpp:2314:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2314 | z80funtab.insert("ex",pizEX); | ^~~~ piz80.cpp:2315:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2315 | z80funtab.insert("exx",pizEXX); | ^~~~~ piz80.cpp:2316:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2316 | z80funtab.insert("halt",pizHALT); | ^~~~~~ piz80.cpp:2317:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2317 | z80funtab.insert("im",pizIM); | ^~~~ piz80.cpp:2318:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2318 | z80funtab.insert("in",pizIN); | ^~~~ piz80.cpp:2319:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2319 | z80funtab.insert("inc",pizINC); | ^~~~~ piz80.cpp:2320:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2320 | z80funtab.insert("ind",pizIND); | ^~~~~ piz80.cpp:2321:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2321 | z80funtab.insert("indr",pizINDR); | ^~~~~~ piz80.cpp:2322:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2322 | z80funtab.insert("ini",pizINI); | ^~~~~ piz80.cpp:2323:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2323 | z80funtab.insert("inir",pizINIR); | ^~~~~~ piz80.cpp:2324:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2324 | z80funtab.insert("jp",pizJP); | ^~~~ piz80.cpp:2325:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2325 | z80funtab.insert("jr",pizJR); | ^~~~ piz80.cpp:2326:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2326 | z80funtab.insert("ld",pizLD); | ^~~~ piz80.cpp:2327:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2327 | z80funtab.insert("ldd",pizLDD); | ^~~~~ piz80.cpp:2328:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2328 | z80funtab.insert("lddr",pizLDDR); | ^~~~~~ piz80.cpp:2329:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2329 | z80funtab.insert("ldi",pizLDI); | ^~~~~ piz80.cpp:2330:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2330 | z80funtab.insert("ldir",pizLDIR); | ^~~~~~ piz80.cpp:2331:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2331 | z80funtab.insert("mulub",pizMULUB); | ^~~~~~~ piz80.cpp:2332:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2332 | z80funtab.insert("muluw",pizMULUW); | ^~~~~~~ piz80.cpp:2333:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2333 | z80funtab.insert("neg",pizNEG); | ^~~~~ piz80.cpp:2334:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2334 | z80funtab.insert("nop",pizNOP); | ^~~~~ piz80.cpp:2335:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2335 | z80funtab.insert("or",pizOR); | ^~~~ piz80.cpp:2336:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2336 | z80funtab.insert("otdr",pizOTDR); | ^~~~~~ piz80.cpp:2337:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2337 | z80funtab.insert("otir",pizOTIR); | ^~~~~~ piz80.cpp:2338:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2338 | z80funtab.insert("out",pizOUT); | ^~~~~ piz80.cpp:2339:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2339 | z80funtab.insert("outd",pizOUTD); | ^~~~~~ piz80.cpp:2340:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2340 | z80funtab.insert("outi",pizOUTI); | ^~~~~~ piz80.cpp:2341:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2341 | z80funtab.insert("pop",pizPOP); | ^~~~~ piz80.cpp:2342:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2342 | z80funtab.insert("push",pizPUSH); | ^~~~~~ piz80.cpp:2343:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2343 | z80funtab.insert("res",pizRES); | ^~~~~ piz80.cpp:2344:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2344 | z80funtab.insert("ret",pizRET); | ^~~~~ piz80.cpp:2345:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2345 | z80funtab.insert("reti",pizRETI); | ^~~~~~ piz80.cpp:2346:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2346 | z80funtab.insert("retn",pizRETN); | ^~~~~~ piz80.cpp:2347:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2347 | z80funtab.insert("rl",pizRL); | ^~~~ piz80.cpp:2348:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2348 | z80funtab.insert("rla",pizRLA); | ^~~~~ piz80.cpp:2349:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2349 | z80funtab.insert("rlc",pizRLC); | ^~~~~ piz80.cpp:2350:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2350 | z80funtab.insert("rlca",pizRLCA); | ^~~~~~ piz80.cpp:2351:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2351 | z80funtab.insert("rld",pizRLD); | ^~~~~ piz80.cpp:2352:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2352 | z80funtab.insert("rr",pizRR); | ^~~~ piz80.cpp:2353:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2353 | z80funtab.insert("rra",pizRRA); | ^~~~~ piz80.cpp:2354:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2354 | z80funtab.insert("rrc",pizRRC); | ^~~~~ piz80.cpp:2355:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2355 | z80funtab.insert("rrca",pizRRCA); | ^~~~~~ piz80.cpp:2356:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2356 | z80funtab.insert("rrd",pizRRD); | ^~~~~ piz80.cpp:2357:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2357 | z80funtab.insert("rst",pizRST); | ^~~~~ piz80.cpp:2358:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2358 | z80funtab.insert("sbc",pizSBC); | ^~~~~ piz80.cpp:2359:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2359 | z80funtab.insert("scf",pizSCF); | ^~~~~ piz80.cpp:2360:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2360 | z80funtab.insert("set",pizSET); | ^~~~~ piz80.cpp:2361:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2361 | z80funtab.insert("sla",pizSLA); | ^~~~~ piz80.cpp:2362:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2362 | z80funtab.insert("sli",pizSLL); | ^~~~~ piz80.cpp:2363:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2363 | z80funtab.insert("sll",pizSLL); | ^~~~~ piz80.cpp:2364:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2364 | z80funtab.insert("sra",pizSRA); | ^~~~~ piz80.cpp:2365:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2365 | z80funtab.insert("srl",pizSRL); | ^~~~~ piz80.cpp:2366:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2366 | z80funtab.insert("sub",pizSUB); | ^~~~~ piz80.cpp:2367:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2367 | z80funtab.insert("xor",pizXOR); | ^~~~~ g++ -Wp,-MD,.deps/reader.d -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DMAX_PATH=MAXPATHLEN -c -o reader.o reader.cpp g++ -Wp,-MD,.deps/sjasm.d -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DMAX_PATH=MAXPATHLEN -c -o sjasm.o sjasm.cpp g++ -Wp,-MD,.deps/sjio.d -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DMAX_PATH=MAXPATHLEN -c -o sjio.o sjio.cpp reader.cpp: In function 'int needequ()': reader.cpp:66:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 66 | if (cmphstr(lp,"equ")) return 1; | ^~~~~ reader.cpp: In function 'int needfield()': reader.cpp:76:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 76 | if (cmphstr(lp,"field")) return 1; | ^~~~~~~ reader.cpp: In function 'char* getparen(char*)': reader.cpp:109:13: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 109 | else if (*p==')') | ^ reader.cpp: In function 'int check8(long unsigned int)': reader.cpp:143:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 143 | if (val!=(val&255) && ~val>127) { error("Bytes lost",0); return 0; } | ^~~~~~~~~~~~ reader.cpp: In function 'int check8o(long int)': reader.cpp:148:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 148 | if (val<-128 || val>127) { error("Offset out of range",0); return 0; } | ^~~~~~~~~~~~~~~~~~~~~ reader.cpp: In function 'int check16(long unsigned int)': reader.cpp:153:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 153 | if (val!=(val&65535) && ~val>32767) { error("Bytes lost",0); return 0; } | ^~~~~~~~~~~~ reader.cpp: In function 'int check24(long unsigned int)': reader.cpp:158:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 158 | if (val!=(val&16777215) && ~val>8388607) { error("Bytes lost",0); return 0; } | ^~~~~~~~~~~~ reader.cpp: In function 'int getConstant(char*&, long int&)': reader.cpp:212:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 212 | if ((v=getval(*p))>=16) { error("Digit not in base",op); return 0; } | ^~~~~~~~~~~~~~~~~~~ reader.cpp:213:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 213 | oval=val; val=val*16+v; ++p; if (oval>val) error("Overflow",0,SUPPRES); | ^~~~~~~~~~ reader.cpp:215:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 215 | if (p-p3<2) { error("Syntax error",op,CATCHALL); return 0; } | ^~~~~~~~~~~~~~ reader.cpp:220:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 220 | if ((v=getval(*p))>=2) { error("Digit not in base",op); return 0; } | ^~~~~~~~~~~~~~~~~~~ reader.cpp:221:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 221 | oval=val; val=val*2+v; ++p; if (oval>val) error("Overflow",0,SUPPRES); | ^~~~~~~~~~ reader.cpp:223:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 223 | if (p-p3<2) { error("Syntax error",op,CATCHALL); return 0; } | ^~~~~~~~~~~~~~ reader.cpp:230:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 230 | if ((v=getval(*p))>=16) { error("Digit not in base",op); return 0; } | ^~~~~~~~~~~~~~~~~~~ reader.cpp:231:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 231 | oval=val; val=val*16+v; ++p; if (oval>val) error("Overflow",0,SUPPRES); | ^~~~~~~~~~ reader.cpp:233:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 233 | if (p-p3<3) { error("Syntax error",op,CATCHALL); return 0; } | ^~~~~~~~~~~~~~ reader.cpp:252:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 252 | if ((v=getval(*p))>=base) { error("Digit not in base",op); return 0; } | ^~~~~~~~~~~~~~~~~~~ reader.cpp:253:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 253 | oval=val; val+=v*pb; if (oval>val) error("Overflow",0,SUPPRES); | ^~~~~~~~~~ reader.cpp: In function 'int getCharConstChar(char*&, long int&)': reader.cpp:275:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 275 | default: --op; val='\\'; error("Unknown escape",op); return 1; | ^~~~~~~~~~~~~~~~ reader.cpp: In function 'int getCharConst(char*&, long int&)': reader.cpp:290:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 290 | if (t>4) error("Overflow",0,SUPPRES); | ^~~~~~~~~~ reader.cpp: In function 'int getBytes(char*&, int*, int, int)': reader.cpp:301:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 301 | if (!*p) { error("Expression expected",0,SUPPRES); break; } | ^~~~~~~~~~~~~~~~~~~~~ reader.cpp:302:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 302 | if (t==128) { error("Too many arguments",p,SUPPRES); break; } | ^~~~~~~~~~~~~~~~~~~~ reader.cpp:306:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 306 | if (!*p || *p=='"') { error("Syntax error",p,SUPPRES); e[t]=-1; return t; } | ^~~~~~~~~~~~~~ reader.cpp:307:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 307 | if (t==128) { error("Too many arguments",p,SUPPRES); e[t]=-1; return t; } | ^~~~~~~~~~~~~~~~~~~~ reader.cpp:313:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 313 | else { error("Syntax error",p,SUPPRES); break; } | ^~~~~~~~~~~~~~ reader.cpp: In function 'char* getfilename(char*&)': reader.cpp:330:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 330 | if (*p=='"') ++p; else error("No closing '\"'",0); | ^~~~~~~~~~~~~~~~~ reader.cpp:334:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 334 | if (*p=='>') ++p; else error("No closing '>'",0); | ^~~~~~~~~~~~~~~~ reader.cpp:321:7: warning: unused variable 'o' [-Wunused-variable] 321 | int o=0; | ^ reader.cpp: In function 'int needcomma(char*&)': reader.cpp:379:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 379 | if (*p!=',') error("Comma expected",0); | ^~~~~~~~~~~~~~~~ reader.cpp: In function 'int needbparen(char*&)': reader.cpp:385:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 385 | if (*p!=']') error("']' expected",0); | ^~~~~~~~~~~~~~ reader.cpp: In function 'structmembs GetStructMemberId(char*&)': reader.cpp:398:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 398 | case 'b'*2+'y': case 'B'*2+'Y': if (cmphstr(p,"byte")) return SMEMBBYTE; break; | ^~~~~~ reader.cpp:399:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 399 | case 'w'*2+'o': case 'W'*2+'O': if (cmphstr(p,"word")) return SMEMBWORD; break; | ^~~~~~ reader.cpp:400:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 400 | case 'b'*2+'l': case 'B'*2+'L': if (cmphstr(p,"block")) return SMEMBBLOCK; break; | ^~~~~~~ reader.cpp:401:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 401 | case 'd'*2+'b': case 'D'*2+'B': if (cmphstr(p,"db")) return SMEMBBYTE; break; | ^~~~ reader.cpp:403:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 403 | if (cmphstr(p,"dw")) return SMEMBWORD; | ^~~~ reader.cpp:404:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 404 | if (cmphstr(p,"dword")) return SMEMBDWORD; | ^~~~~~~ reader.cpp:406:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 406 | case 'd'*2+'s': case 'D'*2+'S': if (cmphstr(p,"ds")) return SMEMBBLOCK; break; | ^~~~ reader.cpp:407:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 407 | case 'd'*2+'d': case 'D'*2+'D': if (cmphstr(p,"dd")) return SMEMBDWORD; break; | ^~~~ reader.cpp:408:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 408 | case 'a'*2+'l': case 'A'*2+'L': if (cmphstr(p,"align")) return SMEMBALIGN; break; | ^~~~~~~ reader.cpp:410:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 410 | if (cmphstr(p,"defs")) return SMEMBBLOCK; | ^~~~~~ reader.cpp:411:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 411 | if (cmphstr(p,"defb")) return SMEMBBYTE; | ^~~~~~ reader.cpp:412:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 412 | if (cmphstr(p,"defw")) return SMEMBWORD; | ^~~~~~ reader.cpp:413:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 413 | if (cmphstr(p,"defd")) return SMEMBDWORD; | ^~~~~~ reader.cpp:416:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 416 | if (cmphstr(p,"d24")) return SMEMBD24; | ^~~~~ piz80.cpp: In function 'void pizLDD()': piz80.cpp:1386:41: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized] 1386 | e[0]=e[4]=reg; e[1]=0x36; e[2]=b; e[3]=z80getbyte(lp); e[5]=0x2b; break; | ~~~~^~ sjasm.cpp: In function 'void InitPass(int)': sjasm.cpp:76:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 76 | modlabp=0; vorlabp="_"; macrolabp=0; listmacro=0; | ^~~ sjasm.cpp: In function 'void getOptions(char**&, int&)': sjasm.cpp:99:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 99 | case 'i': dirlstp=new stringlst(p,dirlstp); p=""; break; | ^~ piz80.cpp: In function 'void pizLDI()': piz80.cpp:1489:30: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized] 1489 | e[0]=e[3]=reg; e[2]=b; e[1]=0x70+reg2; e[4]=0x23; break; | ~~~~^~ sjio.cpp: In function 'void WriteDest()': sjio.cpp:64:38: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 64 | if(fwrite(destbuf,1,desttel,output)"); strcat(pp,line); fputs(pline,listfp); | ^~ sjio.cpp:216:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 216 | if (listmacro) strcat(pp,">"); strcat(pp,line); fputs(pline,listfp); | ^~~~~~ sjio.cpp: In function 'void EmitBytes(int*)': sjio.cpp:236:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 236 | if (*bytes==-1) { error("Illegal instruction",line,CATCHALL); *lp=0; } | ^~~~~~~~~~~~~~~~~~~~~ sjio.cpp: In function 'void BinIncFile(char*, int, int)': sjio.cpp:291:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 291 | if (res==-1) error("Read error",fname,FATAL); | ^~~~~~~~~~~~ sjio.cpp:292:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 292 | if (res!=offset) error("Offset beyond filelength",fname,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sjio.cpp:297:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 297 | if (res==-1) error("Read error",fname,FATAL); | ^~~~~~~~~~~~ sjio.cpp:298:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 298 | if (res!=len) error("Unexpected end of file",fname,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~ sjio.cpp:307:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 307 | if (res==-1) error("Read error",fname,FATAL); | ^~~~~~~~~~~~ sjio.cpp: In function 'void OpenFile(char*)': sjio.cpp:324:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 324 | if (++include>20) error("Over 20 files nested",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~ sjio.cpp:332:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 332 | if (strlen(line)==LINEMAX-1) error("Line too long",0,FATAL); | ^~~~~~~~~~~~~~~ sjio.cpp: In function 'void CloseDest()': sjio.cpp:354:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 354 | if (destlen>size) error("File exceeds 'size'",0); | ^~~~~~~~~~~~~~~~~~~~~ sjio.cpp: In function 'void SeekDest(long int, int)': sjio.cpp:370:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 370 | if(fseek(output,offset,method)) error("File seek error (FORG)",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~ sjio.cpp: In function 'void OpenDest(int)': sjio.cpp:396:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 396 | if(fseek(output,0,mode==OUTPUT_REWIND ? SEEK_SET : SEEK_END)) error("File seek error (OUTPUT)",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sjio.cpp: In function 'Ending ReadFile()': sjio.cpp:428:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 428 | if (!fgets(p=line,LINEMAX,input)) error("Unexpected end of file",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~ sjio.cpp:430:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 430 | if (strlen(line)==LINEMAX-1) error("Line too long",0,FATAL); | ^~~~~~~~~~~~~~~ sjio.cpp:434:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 434 | if (cmphstr(p,"endif")) { return ENDIF; } | ^~~~~~~ sjio.cpp:435:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 435 | if (cmphstr(p,"else")) { ListFile(); return ELSE; } | ^~~~~~ sjio.cpp:436:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 436 | if (cmphstr(p,"endt")) { return ENDTEXTAREA; } | ^~~~~~ sjio.cpp:437:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 437 | if (cmphstr(p,"dephase")) { return ENDTEXTAREA; } | ^~~~~~~~~ sjio.cpp:420:14: warning: variable 'ol' set but not used [-Wunused-but-set-variable] 420 | stringlst *ol; | ^~ sjio.cpp: In function 'Ending SkipFile()': sjio.cpp:452:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 452 | if (!fgets(p=line,LINEMAX,input)) error("Unexpected end of file",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~ sjio.cpp:454:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 454 | if (strlen(line)==LINEMAX-1) error("Line too long",0,FATAL); | ^~~~~~~~~~~~~~~ sjio.cpp:458:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 458 | if (cmphstr(p,"if")) { ++iflevel; } | ^~~~ sjio.cpp:459:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 459 | if (cmphstr(p,"ifexist")) { ++iflevel; } | ^~~~~~~~~ sjio.cpp:460:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 460 | if (cmphstr(p,"ifnexist")) { ++iflevel; } | ^~~~~~~~~~ sjio.cpp:461:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 461 | if (cmphstr(p,"ifdef")) { ++iflevel; } | ^~~~~~~ sjio.cpp:462:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 462 | if (cmphstr(p,"ifndef")) { ++iflevel; } | ^~~~~~~~ sjio.cpp:463:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 463 | if (cmphstr(p,"endif")) { if (iflevel) --iflevel; else return ENDIF; } | ^~~~~~~ sjio.cpp:464:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 464 | if (cmphstr(p,"else")) { if (!iflevel) { ListFile(); return ELSE; } } | ^~~~~~ sjio.cpp:443:14: warning: variable 'ol' set but not used [-Wunused-but-set-variable] 443 | stringlst *ol; | ^~ sjio.cpp: In function 'int ReadLine()': sjio.cpp:471:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 471 | if (!fgets(line,LINEMAX,input)) error("Unexpected end of file",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~ sjio.cpp:473:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 473 | if (strlen(line)==LINEMAX-1) error("Line too long",0,FATAL); | ^~~~~~~~~~~~~~~ sjio.cpp: In function 'int ReadFileToStringLst(stringlst*&, char*)': sjio.cpp:482:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 482 | if (!fgets(p=line,LINEMAX,input)) error("Unexpected end of file",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~ sjio.cpp:484:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 484 | if (strlen(line)==LINEMAX-1) error("Line too long",0,FATAL); | ^~~~~~~~~~~~~~~ g++ -Wp,-MD,.deps/tables.d -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DMAX_PATH=MAXPATHLEN -c -o tables.o tables.cpp tables.cpp: In function 'char* MaakLabNaam(char*)': tables.cpp:46:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 46 | if (!isalpha(*np) && *np!='_') { error("Invalid labelname",naam); return 0; } | ^~~~~~~~~~~~~~~~~~~ tables.cpp:49:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 49 | else { error("Invalid labelname",naam); return 0; } | ^~~~~~~~~~~~~~~~~~~ tables.cpp:52:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 52 | error("1Label too long",naam,PASS1); | ^~~~~~~~~~~~~~~~~ tables.cpp:59:11: warning: unused variable 'len1' [-Wunused-variable] 59 | int len1=strlen(lp); | ^~~~ tables.cpp:60:11: warning: unused variable 'len2' [-Wunused-variable] 60 | int len2=strlen(modlabp); | ^~~~ tables.cpp: In function 'int getLabelValue(char*&, long int&)': tables.cpp:88:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 88 | if (!isalpha(*p) && *p!='_') { error("Invalid labelname",temp); return 0; } | ^~~~~~~~~~~~~~~~~~~ tables.cpp:93:23: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 93 | if (strlen(temp)>LABMAX+len) { | ~~~~~~~~~~~~^~~~~~~~~~~ tables.cpp:94:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 94 | error("2Label too long",temp+len); | ^~~~~~~~~~~~~~~~~ tables.cpp:120:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 120 | if (!isalpha(*p) && *p!='_') { error("Invalid labelname",temp); return 0; } | ^~~~~~~~~~~~~~~~~~~ tables.cpp:125:19: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 125 | if (strlen(temp)>LABMAX+len) { | ~~~~~~~~~~~~^~~~~~~~~~~ tables.cpp:126:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 126 | error("3Label too long",temp+len); | ^~~~~~~~~~~~~~~~~ tables.cpp:132:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 132 | if (pass==2) { error("Label not found",temp); return 1; } | ^~~~~~~~~~~~~~~~~ tables.cpp:75:48: warning: variable 'plen' set but not used [-Wunused-but-set-variable] 75 | int g=0,l=0,len,olabelnotfound=labelnotfound,plen; | ^~~~ tables.cpp: In function 'int getLocaleLabelValue(char*&, long int&)': tables.cpp:157:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 157 | if (pass==2) { error("Label not found",naam,SUPPRES); return 1; } | ^~~~~~~~~~~~~~~~~ tables.cpp:156:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 156 | if (nval==(aint)-1) | ^ tables.cpp: In member function 'int labtabcls::insert(char*, long int)': tables.cpp:172:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 172 | if (nextlocation>=LABTABSIZE*2/3) error("Label table full",0,FATAL); | ^~~~~~~~~~~~~~~~~~ tables.cpp:175:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 175 | while(htr=hashtable[tr]) { | ~~~^~~~~~~~~~~~~~ tables.cpp: In member function 'int labtabcls::zoek(char*, long int&)': tables.cpp:189:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 189 | while(htr=hashtable[tr]) { | ~~~^~~~~~~~~~~~~~ tables.cpp: In member function 'int labtabcls::hash(char*)': tables.cpp:206:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 206 | if (g=h & 0xf0000000) { h^=g>>24; h^=g; } | ~^~~~~~~~~~~~~~~ tables.cpp: In member function 'int funtabcls::insert(char*, void (*)())': tables.cpp:248:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 248 | while(htr=hashtable[tr]) { | ~~~^~~~~~~~~~~~~~ tables.cpp:257:33: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 257 | strcpy(p=temp,nname); while(*p=(char)toupper(*p)) ++p; | ~~^~~~~~~~~~~~~~~~~~ tables.cpp:261:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 261 | while(htr=hashtable[tr]) { | ~~~^~~~~~~~~~~~~~ tables.cpp: In member function 'int funtabcls::zoek(char*)': tables.cpp:282:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 282 | while(htr=hashtable[tr]) { | ~~~^~~~~~~~~~~~~~ tables.cpp: In member function 'void definetabcls::add(char*, char*)': tables.cpp:343:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 343 | if (bestaat(naam)) error("Duplicate define",naam); | ^~~~~~~~~~~~~~~~~~ tables.cpp:344:8: warning: array subscript has type 'char' [-Wchar-subscripts] 344 | defs[*naam]=new definetabentrycls(naam,vervanger,defs[*naam]); | ^~~~~ tables.cpp:344:57: warning: array subscript has type 'char' [-Wchar-subscripts] 344 | defs[*naam]=new definetabentrycls(naam,vervanger,defs[*naam]); | ^~~~~ tables.cpp: In member function 'char* definetabcls::getverv(char*)': tables.cpp:348:29: warning: array subscript has type 'char' [-Wchar-subscripts] 348 | definetabentrycls *p=defs[*naam]; | ^~~~~ tables.cpp: In member function 'int definetabcls::bestaat(char*)': tables.cpp:357:29: warning: array subscript has type 'char' [-Wchar-subscripts] 357 | definetabentrycls *p=defs[*naam]; | ^~~~~ tables.cpp: In member function 'void macdefinetabcls::macroadd(char*, char*)': tables.cpp:372:8: warning: array subscript has type 'char' [-Wchar-subscripts] 372 | used[*naam]=1; | ^~~~~ tables.cpp: In member function 'char* macdefinetabcls::getverv(char*)': tables.cpp:385:13: warning: array subscript has type 'char' [-Wchar-subscripts] 385 | if (!used[*naam]) return NULL; | ^~~~~ tables.cpp: In member function 'int macdefinetabcls::bestaat(char*)': tables.cpp:395:13: warning: array subscript has type 'char' [-Wchar-subscripts] 395 | if (!used[*naam]) return 0; | ^~~~~ tables.cpp: In member function 'int macrotabcls::bestaat(char*)': tables.cpp:419:13: warning: array subscript has type 'char' [-Wchar-subscripts] 419 | if (!used[*naam]) return 0; | ^~~~~ tables.cpp: In member function 'void macrotabcls::add(char*, char*&)': tables.cpp:430:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 430 | if (bestaat(nnaam)) error("Duplicate macroname",0,PASS1); | ^~~~~~~~~~~~~~~~~~~~~ tables.cpp:432:8: warning: array subscript has type 'char' [-Wchar-subscripts] 432 | used[*nnaam]=1; | ^~~~~~ tables.cpp:435:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 435 | if (!(n=getid(p))) { error("Illegal macro argument",p,PASS1); break; } | ^~~~~~~~~~~~~~~~~~~~~~~~ tables.cpp:440:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 440 | if (*p) error("Unexpected",p,PASS1); | ^~~~~~~~~~~~ tables.cpp:442:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 442 | if (!ReadFileToStringLst(macs->body,"endm")) error("Unexpected end of macro",0,PASS1); | ^~~~~~ tables.cpp:442:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 442 | if (!ReadFileToStringLst(macs->body,"endm")) error("Unexpected end of macro",0,PASS1); | ^~~~~~~~~~~~~~~~~~~~~~~~~ tables.cpp: In member function 'int macrotabcls::emit(char*, char*&)': tables.cpp:451:13: warning: array subscript has type 'char' [-Wchar-subscripts] 451 | if (!used[*naam]) return 0; | ^~~~~ tables.cpp:466:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 466 | if (!*p) { error("Not enough arguments",0); return 1; } | ^~~~~~~~~~~~~~~~~~~~~~ tables.cpp:470:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 470 | if (!*p) { error("Not enough arguments",0); return 1; } | ^~~~~~~~~~~~~~~~~~~~~~ tables.cpp:472:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 472 | ++p; if (!*p) { error("Not enough arguments",0); return 1; } | ^~~~~~~~~~~~~~~~~~~~~~ tables.cpp:479:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 479 | skipblanks(p); a=a->next; if (a && *p!=',') { error("Not enough arguments",0); return 1; } | ^~~~~~~~~~~~~~~~~~~~~~ tables.cpp:482:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 482 | skipblanks(p); if (*p) error("Too many arguments",0); | ^~~~~~~~~~~~~~~~~~~~ tables.cpp: In member function 'void structcls::addlabel(char*)': tables.cpp:512:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 512 | if (!mnf) mnf=n; if (mnl) mnl->next=n; mnl=n; | ^~ tables.cpp:512:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 512 | if (!mnf) mnf=n; if (mnl) mnl->next=n; mnl=n; | ^~ tables.cpp: In member function 'void structcls::addmemb(structmembicls*)': tables.cpp:516:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 516 | if (!mbf) mbf=n; if (mbl) mbl->next=n; mbl=n; | ^~ tables.cpp:516:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 516 | if (!mbf) mbf=n; if (mbl) mbl->next=n; mbl=n; | ^~ tables.cpp: In member function 'void structcls::copylabel(char*, long int)': tables.cpp:522:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 522 | if (!mnf) mnf=n; if (mnl) mnl->next=n; mnl=n; | ^~ tables.cpp:522:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 522 | if (!mnf) mnf=n; if (mnl) mnl->next=n; mnl=n; | ^~ tables.cpp: In member function 'void structcls::copymemb(structmembicls*, long int)': tables.cpp:535:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 535 | if (!mbf) mbf=n; if (mbl) mbl->next=n; mbl=n; | ^~ tables.cpp:535:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 535 | if (!mbf) mbf=n; if (mbl) mbl->next=n; mbl=n; | ^~ tables.cpp: In member function 'void structcls::cpymembs(structcls*, char*&)': tables.cpp:556:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 556 | default: error("internalerror structcls::cpymembs",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tables.cpp:560:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 560 | while (haakjes--) if (!need(lp,'}')) error("closing } missing",0); | ^~~~~~~~~~~~~~~~~~~ tables.cpp: In member function 'void structcls::deflab()': tables.cpp:572:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 572 | if (!getLabelValue(op,oval)) error("Internal error. ParseLabel()",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tables.cpp:573:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 573 | if (noffset!=oval) error("Label has different value in pass 2",temp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tables.cpp:575:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 575 | if (!labtab.insert(p,noffset)) error("Duplicate label",tp,PASS1); | ^~~~~~~~~~~~~~~~~ tables.cpp:581:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 581 | if (!(p=MaakLabNaam(ln))) error("Illegal labelname",ln,PASS1); | ^~~~~~~~~~~~~~~~~~~ tables.cpp:583:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 583 | if (!getLabelValue(op,oval)) error("Internal error. ParseLabel()",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tables.cpp:584:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 584 | if (np->offset!=oval) error("Label has different value in pass 2",temp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tables.cpp:586:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 586 | if (!labtab.insert(p,np->offset)) error("Duplicate label",tp,PASS1); | ^~~~~~~~~~~~~~~~~ tables.cpp: In member function 'void structcls::emitlab(char*)': tables.cpp:600:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 600 | if (!getLabelValue(op,oval)) error("Internal error. ParseLabel()",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tables.cpp:601:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 601 | if (adres!=oval) error("Label has different value in pass 2",temp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tables.cpp:603:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 603 | if (!labtab.insert(p,adres)) error("Duplicate label",tp,PASS1); | ^~~~~~~~~~~~~~~~~ tables.cpp:609:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 609 | if (!(p=MaakLabNaam(ln))) error("Illegal labelname",ln,PASS1); | ^~~~~~~~~~~~~~~~~~~ tables.cpp:611:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 611 | if (!getLabelValue(op,oval)) error("Internal error. ParseLabel()",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tables.cpp:612:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 612 | if (np->offset+adres!=oval) error("Label has different value in pass 2",temp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tables.cpp:614:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 614 | if (!labtab.insert(p,np->offset+adres)) error("Duplicate label",tp,PASS1); | ^~~~~~~~~~~~~~~~~ tables.cpp: In member function 'void structcls::emitmembs(char*&)': tables.cpp:652:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 652 | default: error("internalerror structcls::emitmembs",0,FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tables.cpp:656:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 656 | while (haakjes--) if (!need(p,'}')) error("closing } missing",0); | ^~~~~~~~~~~~~~~~~~~ tables.cpp:657:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 657 | skipblanks(p); if (*p) error("Syntax error - too many arguments?",0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tables.cpp: In member function 'structcls* structtabcls::add(char*, int, int, int)': tables.cpp:669:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 669 | if (bestaat(sp)) error("Duplicate structurename",naam,PASS1); | ^~~~~~~~~~~~~~~~~~~~~~~~~ tables.cpp:670:8: warning: array subscript has type 'char' [-Wchar-subscripts] 670 | strs[*sp]=new structcls(naam,sp,idx,0,gl,strs[*sp]); | ^~~ tables.cpp:670:49: warning: array subscript has type 'char' [-Wchar-subscripts] 670 | strs[*sp]=new structcls(naam,sp,idx,0,gl,strs[*sp]); | ^~~ tables.cpp:671:16: warning: array subscript has type 'char' [-Wchar-subscripts] 671 | if (no) strs[*sp]->addmemb(new structmembicls(0,no,0,SMEMBBLOCK)); | ^~~ tables.cpp:672:15: warning: array subscript has type 'char' [-Wchar-subscripts] 672 | return strs[*sp]; | ^~~ tables.cpp: In member function 'structcls* structtabcls::zoek(char*, int)': tables.cpp:679:21: warning: array subscript has type 'char' [-Wchar-subscripts] 679 | structcls *p=strs[*sp]; | ^~~ tables.cpp:682:35: warning: array subscript has type 'char' [-Wchar-subscripts] 682 | sp+=1+strlen(modlabp); p=strs[*sp]; | ^~~ tables.cpp: In member function 'int structtabcls::bestaat(char*)': tables.cpp:689:21: warning: array subscript has type 'char' [-Wchar-subscripts] 689 | structcls *p=strs[*naam]; | ^~~~~ g++ -o sjasm direct.o loose.o parser.o piz80.o reader.o sjasm.o sjio.o tables.o make: Leaving directory '/builddir/build/BUILD/sjasm-0.39/sjasmsrc039g1' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.TEFKfc + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/sjasm-0.39-0.27.g1.fc33.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/sjasm-0.39-0.27.g1.fc33.riscv64 ++ dirname /builddir/build/BUILDROOT/sjasm-0.39-0.27.g1.fc33.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/sjasm-0.39-0.27.g1.fc33.riscv64 + cd sjasm-0.39 + rm -rf /builddir/build/BUILDROOT/sjasm-0.39-0.27.g1.fc33.riscv64 + make -C sjasmsrc039g1 install DESTDIR=/builddir/build/BUILDROOT/sjasm-0.39-0.27.g1.fc33.riscv64 make: Entering directory '/builddir/build/BUILD/sjasm-0.39/sjasmsrc039g1' mkdir -p /builddir/build/BUILDROOT/sjasm-0.39-0.27.g1.fc33.riscv64/usr/bin cp -f sjasm /builddir/build/BUILDROOT/sjasm-0.39-0.27.g1.fc33.riscv64/usr/bin make: Leaving directory '/builddir/build/BUILD/sjasm-0.39/sjasmsrc039g1' + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 0.39-0.27.g1.fc33 --unique-debug-suffix -0.39-0.27.g1.fc33.riscv64 --unique-debug-src-base sjasm-0.39-0.27.g1.fc33.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/sjasm-0.39 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/sjasm-0.39-0.27.g1.fc33.riscv64/usr/bin/sjasm extracting debug info from /builddir/build/BUILDROOT/sjasm-0.39-0.27.g1.fc33.riscv64/usr/bin/sjasm original debug info size: 536kB, size after compression: 444kB /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 341 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile /usr/bin/python 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: sjasm-0.39-0.27.g1.fc33.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.z53Oee + umask 022 + cd /builddir/build/BUILD + cd sjasm-0.39 + DOCDIR=/builddir/build/BUILDROOT/sjasm-0.39-0.27.g1.fc33.riscv64/usr/share/doc/sjasm + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/sjasm-0.39-0.27.g1.fc33.riscv64/usr/share/doc/sjasm + cp -pr sjasm.txt /builddir/build/BUILDROOT/sjasm-0.39-0.27.g1.fc33.riscv64/usr/share/doc/sjasm + RPM_EC=0 ++ jobs -p + exit 0 Provides: sjasm = 0.39-0.27.g1.fc33 sjasm(riscv-64) = 0.39-0.27.g1.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libm.so.6()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.8)(64bit) libstdc++.so.6(CXXABI_1.3.9)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.11)(64bit) libstdc++.so.6(GLIBCXX_3.4.9)(64bit) rtld(GNU_HASH) Processing files: sjasm-debugsource-0.39-0.27.g1.fc33.riscv64 Provides: sjasm-debugsource = 0.39-0.27.g1.fc33 sjasm-debugsource(riscv-64) = 0.39-0.27.g1.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: sjasm-debuginfo-0.39-0.27.g1.fc33.riscv64 Provides: debuginfo(build-id) = 506dec00577c9c683e58aa509b56f2882744d26a sjasm-debuginfo = 0.39-0.27.g1.fc33 sjasm-debuginfo(riscv-64) = 0.39-0.27.g1.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: sjasm-debugsource(riscv-64) = 0.39-0.27.g1.fc33 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/sjasm-0.39-0.27.g1.fc33.riscv64 Wrote: /builddir/build/RPMS/sjasm-0.39-0.27.g1.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/sjasm-debugsource-0.39-0.27.g1.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/sjasm-debuginfo-0.39-0.27.g1.fc33.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.KBseae + umask 022 + cd /builddir/build/BUILD + cd sjasm-0.39 + /usr/bin/rm -rf /builddir/build/BUILDROOT/sjasm-0.39-0.27.g1.fc33.riscv64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0