Mock Version: 2.15 Mock Version: 2.15 Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/calcium-calculator.spec'], chrootPath='/var/lib/mock/f40-build-751768-116366/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': 'C.UTF-8'}shell=Falselogger=timeout=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/calcium-calculator.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': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689724800 Wrote: /builddir/build/SRPMS/calcium-calculator-7.9.5-11.fc40.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/calcium-calculator.spec'], chrootPath='/var/lib/mock/f40-build-751768-116366/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': 'C.UTF-8'}shell=Falselogger=timeout=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/calcium-calculator.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': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689724800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ygB9J3 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf calcium-calculator-7.9.5 + /usr/bin/mkdir -p calcium-calculator-7.9.5 + cd calcium-calculator-7.9.5 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/calc_unix_7.9.5.tgz + STATUS=0 + '[' 0 -ne 0 ']' + rm -rf /builddir/build/BUILD/calcium-calculator-7.9.5-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/calcium-calculator-7.9.5-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git config gc.auto 0 + /usr/bin/git add --force . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'calcium-calculator-7.9.5 base' + /usr/bin/git checkout --track -b rpm-build Switched to a new branch 'rpm-build' branch 'rpm-build' set up to track 'master'. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0002-Fix-invalid-conversion-from-char-to-char.patch + /usr/bin/git apply --index --reject - :19: trailing whitespace. if ( !( sind = strtok( NULL, "}") ) ) errorMessage( token_index(s), 0, "No closing curly bracket" ); Checking patch source/syntax.cpp... Applied patch source/syntax.cpp cleanly. warning: 1 line adds whitespace errors. + /usr/bin/git commit -q -m 0002-Fix-invalid-conversion-from-char-to-char.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0003-Include-build-flags.patch + /usr/bin/git apply --index --reject - Checking patch Makefile... Applied patch Makefile cleanly. + /usr/bin/git commit -q -m 0003-Include-build-flags.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0004-Fix-format-security-issues.patch + /usr/bin/git apply --index --reject - Checking patch source/grid.cpp... Checking patch source/syntax.cpp... Applied patch source/grid.cpp cleanly. Applied patch source/syntax.cpp cleanly. + /usr/bin/git commit -q -m 0004-Fix-format-security-issues.patch --author 'rpm-build ' + sed -i 's/\r$//' README.txt + chmod 0644 README.txt + find . -name '*' -type f -exec chmod 0644 '{}' ';' + find . -name '*' -type f -exec sed -i 's/\r$//' '{}' ';' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.MMV5h3 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd calcium-calculator-7.9.5 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + /usr/bin/make -O -j4 V=1 VERBOSE=1 mv source/*o ./ mv: cannot stat 'source/*o': No such file or directory make: [Makefile:57: moveobjects] Error 1 (ignored) g++ source/peak.cpp -O -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -c g++ source/table.cpp -O -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -c source/table.cpp: In constructor ‘TableObj::TableObj(const char*, char*)’: source/table.cpp:54:10: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 54 | fgets(s, 255, file); | ~~~~~^~~~~~~~~~~~~~ source/table.cpp:68:10: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 68 | fgets(s, 255, file); | ~~~~~^~~~~~~~~~~~~~ g++ source/vector.cpp -O -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -c source/vector.cpp: In member function ‘void VectorObj::import(const char*)’: source/vector.cpp:327:8: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 327 | fread( (void *)(&n), sizeof(long), 1, f); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/vector.cpp:331:8: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 331 | fread( (void *)elem, sizeof(double), size, f); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ source/box.cpp -O -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -c source/box.cpp: In constructor ‘RegionObj::RegionObj(TokenString&)’: source/box.cpp:261:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 261 | if (enclosures[i].xmin < XMin) XMin = enclosures[i].xmin; if (enclosures[i].xmax > XMax) XMax = enclosures[i].xmax; | ^~ source/box.cpp:261:76: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 261 | if (enclosures[i].xmin < XMin) XMin = enclosures[i].xmin; if (enclosures[i].xmax > XMax) XMax = enclosures[i].xmax; | ^~ source/box.cpp:264:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 264 | if (enclosures[i].ymin < YMin) YMin = enclosures[i].ymin; if (enclosures[i].ymax > YMax) YMax = enclosures[i].ymax; | ^~ source/box.cpp:264:76: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 264 | if (enclosures[i].ymin < YMin) YMin = enclosures[i].ymin; if (enclosures[i].ymax > YMax) YMax = enclosures[i].ymax; | ^~ source/box.cpp:267:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 267 | if (enclosures[i].zmin < ZMin) ZMin = enclosures[i].zmin; if (enclosures[i].zmax > ZMax) ZMax = enclosures[i].zmax; | ^~ source/box.cpp:267:76: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 267 | if (enclosures[i].zmin < ZMin) ZMin = enclosures[i].zmin; if (enclosures[i].zmax > ZMax) ZMax = enclosures[i].zmax; | ^~ source/box.cpp: In member function ‘int RegionObj::point_type(int, int, int, int, VolumeObjClass*)’: source/box.cpp:343:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 343 | if (fieldObstNum) | ^~ source/box.cpp:356:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 356 | if ( inside == 0 ) return 0; | ^~ source/box.cpp: In member function ‘int VolumeObjClass::inside(int, int, int)’: source/box.cpp:90:1: warning: control reaches end of non-void function [-Wreturn-type] 90 | } | ^ g++ source/grid.cpp -O -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -c source/grid.cpp: In member function ‘void GridObj::grid_stretch(const char*, double, double, double)’: source/grid.cpp:243:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 243 | if (x1 < cmin) x1 = cmin; if (x1 > cmax) x1 = cmax; | ^~ source/grid.cpp:243:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 243 | if (x1 < cmin) x1 = cmin; if (x1 > cmax) x1 = cmax; | ^~ source/grid.cpp:244:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 244 | if (x2 < cmin) x2 = cmin; if (x2 > cmax) x2 = cmax; | ^~ source/grid.cpp:244:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 244 | if (x2 < cmin) x2 = cmin; if (x2 > cmax) x2 = cmax; | ^~ source/grid.cpp:298:6: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 298 | if ( n2 > n1 ) | ^ source/grid.cpp:234:61: warning: unused variable ‘fmax’ [-Wunused-variable] 234 | double eps = 1.0e-14, tiny = 1.0e-15, cmin, cmax, sfn, fmax = 2.0; | ^~~~ source/grid.cpp:274:10: warning: variable ‘y1’ set but not used [-Wunused-but-set-variable] 274 | double y1 = (X / dx1 - N - correct) * logf - log23f + log( (2*X1*f1 / dx1 + f2 )*( 2*X2*f1 / dx1 + f2 ) ); | ^~ source/grid.cpp: In member function ‘double GridObj::stretchFactorCorrection(double, double, int, double&)’: source/grid.cpp:354:23: warning: variable ‘y1’ set but not used [-Wunused-but-set-variable] 354 | double y0, y1, yn; | ^~ source/grid.cpp: In member function ‘void BCarrayObj::set_bc_types(TokenString&)’: source/grid.cpp:644:31: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 644 | if (!b && !c) | ^ g++ source/interpol.cpp -O -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -c source/interpol.cpp: In constructor ‘InterpolObj::InterpolObj(TokenString&, long int, FieldObj*)’: source/interpol.cpp:165:60: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation] 165 | while (x > xcoord[ix] && ix < xsize - 1) ix++; x0 = xcoord[ix-1]; x1 = xcoord[ix]; | ^~~~~ source/interpol.cpp:165:108: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’ 165 | while (x > xcoord[ix] && ix < xsize - 1) ix++; x0 = xcoord[ix-1]; x1 = xcoord[ix]; | ^~ source/interpol.cpp: In constructor ‘InterpolArray::InterpolArray(TokenString&, FieldObj*, BufferArray*)’: source/interpol.cpp:237:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 237 | if (Bufs) | ^~ source/interpol.cpp:241:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 241 | array = new InterpolObj *[interpol_num]; | ^~~~~ In file included from source/interpol.cpp:43: source/field.h: In member function ‘double FieldObj::average(double*)’: source/field.h:213:3: warning: control reaches end of non-void function [-Wreturn-type] 213 | } | ^ g++ source/syntax.cpp -O -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -c source/syntax.cpp: In member function ‘char* TokenString::getVarName(long int, const char*, int)’: source/syntax.cpp:152:28: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 152 | if ( !isLineStart( token_ptr[p - 1] ) ) | ^ source/syntax.cpp: In member function ‘void TokenString::parse(const char*, const char*, const char*, int, char**)’: source/syntax.cpp:266:33: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 266 | if ( ifLevel >= 0 ) //*** Skip token | ^~ source/syntax.cpp:271:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 271 | if ( ::equal(token, THEN_TOKEN) ) { | ^~ source/syntax.cpp:319:41: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 319 | if (token[0] == '$') | ^~ source/syntax.cpp:330:49: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 330 | addToken(token, currentLine, currentScript); //!!! All contingencies checked -> add the token to the list !!! | ^~~~~~~~ source/syntax.cpp:319:44: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 319 | if (token[0] == '$') | ^ source/syntax.cpp: In member function ‘void TokenString::getToken(char*&, char*&, char*, bool)’: source/syntax.cpp:377:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 377 | for (i = 0; i < ALIAS_NUM; i++) // *** 1. Look for alias tokens first | ^~~ source/syntax.cpp:380:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 380 | if (expression_flag) // *** 2. Look for numerical expression tokens next | ^~ source/syntax.cpp:381:25: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 381 | for (i=0; i< TYPE_NUM; i++) // except for "mod", "and" and "or" - no priority to these! | ^~~ source/syntax.cpp:384:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 384 | for (i = 0; i < SPECIAL_NUM; i++) // *** 3. Then look for other special (non-delimited) tokens | ^~~ source/syntax.cpp:384:33: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] source/syntax.cpp:388:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 388 | if ( is_short_token(*ptr1) && !is_sign(*ptr1) ) { ptr1++; return; } // 4. *** Single-character token | ^~ source/syntax.cpp: In member function ‘int TokenString::token_count(const char*, long int*)’: source/syntax.cpp:469:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 469 | for (long i=0; i 1 ) pr_old = priority[old = opStack[stackHead - 2]]; | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~ source/syntax.cpp:1129:92: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1129 | if (priority[ opStack[stackHead - 2] ] > pr_reduce) break; | ~~~~~~~~~~~~~~~~~~~~~^ source/syntax.cpp:1148:93: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1148 | if (priority[ opStack[stackHead - 2] ] > pr_reduce) break; | ~~~~~~~~~~~~~~~~~~~~~^ source/syntax.cpp:1098:9: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation] 1098 | while ( stackHead ) | ^~~~~ source/syntax.cpp:1180:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’ 1180 | opStack[ stackHead++ ] = op; | ^~~~~~~ source/syntax.cpp: In constructor ‘ExpressionObj::ExpressionObj(TokenString&, long int, const char*, VarList*, long int*, double*, const char*, double*, const char*, double*, const char*)’: source/syntax.cpp:1307:57: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 1307 | else if ( !isOperand(term_array[term-1].type) ) | ^ source/syntax.cpp:1316:41: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1316 | if ( isBinary(tp) ) // catch a binary operator as first token, or two binaries in a row | ^~ source/syntax.cpp:1320:49: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1320 | if ( isUnary(tp) && term > 0 ) // catch a unary operator following an operand | ^~ source/syntax.cpp:1316:44: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 1316 | if ( isBinary(tp) ) // catch a binary operator as first token, or two binaries in a row | ^ source/syntax.cpp:1328:49: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1328 | if ( isFunction( tp ) && term > 0 ) | ^~ source/syntax.cpp:1334:57: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1334 | break; | ^~~~~ source/syntax.cpp:1297:25: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 1297 | for (tp = 0; tp < TYPE_NUM; tp++) | ^~~ source/syntax.cpp:1337:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 1337 | if ( tp >= TYPE_NUM) { // did not match any token | ^~ source/syntax.cpp: In member function ‘void ExpressionObj::buildFormulaString(VarList*, double*, const char*, double*, const char*, double*, const char*, const char*)’: source/syntax.cpp:1420:144: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1420 | if ( tp != T_MULT ) strcat(formula, type_id[tp]); else continue; | ^~ source/syntax.cpp:1423:100: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1423 | if ( term_array[term].val == 0 && (term + 2) < term_num ) // process a "0 - number" combination, | ^~ source/syntax.cpp:1428:108: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1428 | char value[64]; | ^~~~ source/syntax.cpp: In function ‘FILE* fopenAssure(const char*, const char*, const char*, const char*)’: source/syntax.cpp:1454:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1454 | else if ( f = fopen(fname, mode) ) return f; | ~~^~~~~~~~~~~~~~~~~~~~ source/syntax.cpp: In member function ‘void TokenString::parse(const char*, const char*, const char*, int, char**)’: source/syntax.cpp:222:29: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 222 | else { fgets(lineString,MAX_LINE_LENGTH,f); currentLine ++; if ( feof(f) ) break; } | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/syntax.cpp: In member function ‘void TokenString::addToken(const char*, int, int)’: source/syntax.cpp:429:16: warning: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 429 | strncpy( token_ptr[token_num], token, tlength ); | ^ source/syntax.cpp:419:29: note: length computed here 419 | int tlength = strlen(token); | ~~~~~~^~~~~~~ In file included from /usr/include/string.h:548, from source/syntax.cpp:34: In function ‘char* strcat(char*, const char*)’, inlined from ‘void ExpressionObj::buildFormulaString(VarList*, double*, const char*, double*, const char*, double*, const char*, const char*)’ at source/syntax.cpp:1438:22: /usr/include/bits/string_fortified.h:130:33: warning: ‘str’ may be used uninitialized [-Wmaybe-uninitialized] 130 | return __builtin___strcat_chk (__dest, __src, __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/syntax.cpp: In member function ‘void ExpressionObj::buildFormulaString(VarList*, double*, const char*, double*, const char*, double*, const char*, const char*)’: source/syntax.cpp:1433:106: note: ‘str’ was declared here 1433 | char *str; | ^~~ source/syntax.cpp: In member function ‘void TokenString::printResults(VarList*)’: source/syntax.cpp:944:32: warning: ‘fileStr’ may be used uninitialized [-Wmaybe-uninitialized] 944 | f = fopenAssure(fileStr,"a","the output of \"append\" statements", ""); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/syntax.cpp:922:17: note: ‘fileStr’ was declared here 922 | char *fileStr; | ^~~~~~~ g++ source/loop.cpp -O -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -c source/loop.cpp: In constructor ‘LoopObj::LoopObj(TokenString&, VectorObj*)’: source/loop.cpp:172:39: warning: ‘graphNum’ may be used uninitialized [-Wmaybe-uninitialized] 172 | ((XmgrPointPlot *)(plots->array[graphNum]))->set_set( (*result)()+i, xPtr, trackIDs[i]); | ^~~~~~~~ source/loop.cpp:157:35: note: ‘graphNum’ was declared here 157 | int xmgrGraph, xmgrGraph0 = -1, graphNum, xmgrSets; | ^~~~~~~~ g++ source/gate.cpp -O -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -c source/gate.cpp: In member function ‘void KineticObj::setNames_ODE_IC(TokenString*, long int*)’: source/gate.cpp:176:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 176 | if ( Param->token3_count(var_id[i], "(", "0", &pos ) ) | ^ source/gate.cpp: In member function ‘double KineticObj::RungeKuttaAdaptive(double, double, PlotArray*, RunStatusString*, double, double, long int)’: source/gate.cpp:470:52: warning: ‘NORMeps’ may be used uninitialized [-Wmaybe-uninitialized] 470 | if ( (norm = derivative().norm() ) < NORMeps || ++count > maxSteps ) break; } | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ source/gate.cpp:367:10: note: ‘NORMeps’ was declared here 367 | double NORMeps, norm; | ^~~~~~~ In file included from /usr/include/stdio.h:980, from source/gate.cpp:42: In function ‘int fprintf(FILE*, const char*, ...)’, inlined from ‘double KineticObj::RungeKuttaAdaptive(double, double, PlotArray*, RunStatusString*, double, double, long int)’ at source/gate.cpp:477:13: /usr/include/bits/stdio2.h:79:24: warning: ‘norm’ may be used uninitialized [-Wmaybe-uninitialized] 79 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 80 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ source/gate.cpp: In member function ‘double KineticObj::RungeKuttaAdaptive(double, double, PlotArray*, RunStatusString*, double, double, long int)’: source/gate.cpp:367:19: note: ‘norm’ was declared here 367 | double NORMeps, norm; | ^~~~ g++ source/field.cpp -O -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -c source/field.cpp: In member function ‘void FieldObj::tridiag(int)’: source/field.cpp:137:17: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 137 | register double sb, sp, dg, rt; | ^~ source/field.cpp:137:21: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 137 | register double sb, sp, dg, rt; | ^~ source/field.cpp:137:25: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 137 | register double sb, sp, dg, rt; | ^~ source/field.cpp:137:29: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 137 | register double sb, sp, dg, rt; | ^~ source/field.cpp: In member function ‘void FieldObj::getCurrents(TokenString&, int, VarList*, double*)’: source/field.cpp:193:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 193 | else if ( ptr = VL->ResolveID(Params[pos + si]) ) { | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/field.cpp: In member function ‘void FieldObj::set_source(int, double, double, double, double, double, double)’: source/field.cpp:635:6: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 635 | if (DIMENSIONALITY > 2) fprintf(stderr, ",%g",z); | ^~ source/field.cpp:636:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 636 | fprintf(stderr, "), with half-width of (%g", sigmax); | ^~~~~~~ source/field.cpp:638:6: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 638 | if (DIMENSIONALITY > 2) fprintf(stderr, ",%g",sigmaz); | ^~ source/field.cpp:639:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 639 | fprintf(stderr, ")"); | ^~~~~~~ source/field.cpp:653:6: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 653 | if (DIMENSIONALITY > 2) fprintf(stderr, ",%d",iz); | ^~ source/field.cpp:654:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 654 | fprintf(stderr, ") <--> (%.4g", xcoord[ix]); | ^~~~~~~ source/field.cpp:656:6: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 656 | if (DIMENSIONALITY > 2) fprintf(stderr, ",%.4g",zcoord[iz]); | ^~ source/field.cpp:657:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 657 | fprintf(stderr, "), point_type="); | ^~~~~~~ source/field.cpp: In member function ‘void FieldObj::init_boundary()’: source/field.cpp:924:22: warning: unused variable ‘bc’ [-Wunused-variable] 924 | int p, bc = 0, boxid; | ^~ source/field.cpp: In member function ‘void FieldObj::nablaX(long int, int, long int, double&, double&, double&, double&)’: source/field.cpp:1728:18: warning: unused variable ‘pterm’ [-Wunused-variable] 1728 | double bdx2, pterm = 0; | ^~~~~ source/field.cpp: In member function ‘void FieldObj::nablaY(long int, int, long int, double&, double&, double&, double&, double)’: source/field.cpp:1765:18: warning: unused variable ‘pterm’ [-Wunused-variable] 1765 | double bdx2, pterm = 0; | ^~~~~ source/field.cpp: In member function ‘void FieldObj::nablaZ(long int, int, long int, double&, double&, double&, double&, double)’: source/field.cpp:1803:18: warning: unused variable ‘pterm’ [-Wunused-variable] 1803 | double bdx2, pterm = 0; | ^~~~~ source/field.cpp: In constructor ‘BufferObj::BufferObj(TokenString&, const char*, char)’: source/field.cpp:1903:20: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 1903 | if ( fplus == 0) | ^ source/field.cpp:1911:20: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 1911 | if ( fminus == 0) | ^ source/field.cpp: In member function ‘void BufferObj::setMembraneLayer(double, double)’: source/field.cpp:1983:21: warning: variable ‘dx’ set but not used [-Wunused-but-set-variable] 1983 | double *coord, dx; | ^~ source/field.cpp: In member function ‘long int FieldObj::location_to_index(double, double, double, bool)’: source/field.cpp:623:1: warning: control reaches end of non-void function [-Wreturn-type] 623 | } | ^ In file included from source/field.cpp:48: source/field.h: In member function ‘double FieldObj::average(double*)’: source/field.h:213:3: warning: control reaches end of non-void function [-Wreturn-type] 213 | } | ^ source/field.cpp: In member function ‘void BufferObj::setMembraneLayer(double, double)’: source/field.cpp:2002:13: warning: ‘Incr’ may be used uninitialized [-Wmaybe-uninitialized] 2002 | Incr *= incr; | ~~~~~^~~~~~~ source/field.cpp:1981:21: note: ‘Incr’ was declared here 1981 | long ii, jj, Incr; | ^~~~ source/field.cpp:2002:16: warning: ‘incr’ may be used uninitialized [-Wmaybe-uninitialized] 2002 | Incr *= incr; | ^~~~ source/field.cpp:1982:28: note: ‘incr’ was declared here 1982 | int ix, iy, iz, j, incr; | ^~~~ source/field.cpp:2007:34: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized] 2007 | double coordinate = coord[j]; | ^ source/field.cpp:1982:25: note: ‘j’ was declared here 1982 | int ix, iy, iz, j, incr; | ^ source/field.cpp:1983:14: warning: ‘coord’ may be used uninitialized [-Wmaybe-uninitialized] 1983 | double *coord, dx; | ^~~~~ source/field.cpp: In constructor ‘BufferArray::BufferArray(TokenString&)’: source/field.cpp:2115:18: warning: ‘void operator delete(void*, long unsigned int)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] 2115 | delete idUB; delete idSB; delete idDB; | ^~~~ In file included from source/field.cpp:45: In function ‘char* StrCpy(const char*)’, inlined from ‘char* TokenString::StrCpy(long int)’ at source/syntax.h:375:40, inlined from ‘BufferArray::BufferArray(TokenString&)’ at source/field.cpp:2069:30: source/syntax.h:239:37: note: returned from ‘void* operator new [](long unsigned int)’ 239 | { char *d = new char[strlen(s) + 1]; return strcpy(d, s); } | ^ source/field.cpp: In constructor ‘BufferArray::BufferArray(TokenString&)’: source/field.cpp:2115:31: warning: ‘void operator delete(void*, long unsigned int)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] 2115 | delete idUB; delete idSB; delete idDB; | ^~~~ In function ‘char* StrCpy(const char*, const char*)’, inlined from ‘BufferArray::BufferArray(TokenString&)’ at source/field.cpp:2070:23: source/syntax.h:243:51: note: returned from ‘void* operator new [](long unsigned int)’ 243 | { char *d = new char[strlen(s1) + strlen(s2) + 2]; strcpy(d,s1); strcat(d,"."); return strcat(d, s2); } | ^ source/field.cpp: In constructor ‘BufferArray::BufferArray(TokenString&)’: source/field.cpp:2115:44: warning: ‘void operator delete(void*, long unsigned int)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] 2115 | delete idUB; delete idSB; delete idDB; | ^~~~ In function ‘char* StrCpy(const char*, const char*)’, inlined from ‘BufferArray::BufferArray(TokenString&)’ at source/field.cpp:2071:23: source/syntax.h:243:51: note: returned from ‘void* operator new [](long unsigned int)’ 243 | { char *d = new char[strlen(s1) + strlen(s2) + 2]; strcpy(d,s1); strcat(d,"."); return strcat(d, s2); } | ^ g++ source/fplot.cpp -O -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -c source/fplot.cpp: In member function ‘virtual void FieldPlot1D::get_range()’: source/fplot.cpp:442:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 442 | if (field->ptype[ind] & VARY_MASK) | ^ source/fplot.cpp: In member function ‘void RunStatusString::update(char)’: source/fplot.cpp:1289:21: warning: operation on ‘((RunStatusString*)this)->RunStatusString::widgetCount’ may be undefined [-Wsequence-point] 1289 | widgetCount = ++widgetCount % 4; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ source/fplot.cpp: In member function ‘virtual void FieldDumpT::draw()’: source/fplot.cpp:183:26: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 183 | fread ( (void *)&tempTime, sizeof(double), 1, file); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/fplot.cpp:184:26: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 184 | fread ( (void *)buffer, sizeof(double), field->size, file); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/fplot.cpp:197:34: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 197 | fread ( (void *)&tempTime, sizeof(double), 1, file); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/fplot.cpp:198:34: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 198 | fread ( (void *)buffer, sizeof(double), field->size, file); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from source/fplot.cpp:48: source/fplot.h: In member function ‘void FieldDumpT::chuckHeader(FILE*, void*)’: source/fplot.h:282:70: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 282 | fread( (void *)buffer, sizeof(int), DIMENSIONALITY + 1, ff); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/fplot.h:283:70: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 283 | fread( (void *)buffer, sizeof(double), field->xsize, ff); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/fplot.h:284:46: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 284 | if (DIMENSIONALITY > 1) fread( (void *)buffer, sizeof(double), field->ysize, ff); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/fplot.h:285:46: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 285 | if (DIMENSIONALITY > 2) fread( (void *)buffer, sizeof(double), field->zsize, ff); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/fplot.cpp: In constructor ‘PlotArray::PlotArray(SimulationObj&)’: source/fplot.cpp:1385:67: warning: ‘xmgr_plot’ may be used uninitialized [-Wmaybe-uninitialized] 1385 | ((XmgrPointPlot *)array[xmgr_plot])->set_set(kin_ptr, time_ptr, VarID); | ^~~~~~~~~ source/fplot.cpp:1364:50: note: ‘xmgr_plot’ was declared here 1364 | int set_num = 1, xmgr_plot; | ^~~~~~~~~ g++ source/markov.cpp -O -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -c source/markov.cpp: In member function ‘void MarkovObj::set_matrix(TokenString&, VarList*)’: source/markov.cpp:135:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 135 | else if (ptr = VL->ResolveID(element) ) { | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~ g++ source/simulation.cpp -O -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -c source/simulation.cpp: In member function ‘long int SimulationObj::Adaptive(double)’: source/simulation.cpp:455:16: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 455 | while (++i <= between_checks && !rvalue) { // loop over n="between_checks" iterations | ~~~~^~~~~~~~~~~~~~~~~ source/simulation.cpp:439:27: warning: unused variable ‘flag’ [-Wunused-variable] 439 | int rvalue = 0, flag = 0; | ^~~~ source/simulation.cpp: In member function ‘virtual void SimulationObj::Run()’: source/simulation.cpp:604:12: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 604 | if (VERBOSE) | ^ source/simulation.cpp: In member function ‘void SimulationObj::Import(const char*)’: source/simulation.cpp:356:10: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 356 | fread( (void *)&n, sizeof(long), 1, f); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/simulation.cpp:376:10: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 376 | fread( &m, sizeof(int), 1, f); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ source/simulation.cpp:379:10: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 379 | fread( (void *)(Gates->var->elem), sizeof(double), Gates->var_num, f); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/simulation.cpp:384:8: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 384 | fread( (void *)endtag, sizeof(char), strlen("endtag")+1, f ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from source/simulation.cpp:47: source/vector.h: In member function ‘double VectorObj::checkerBoardNorm(int, int, int)’: source/vector.h:105:3: warning: control reaches end of non-void function [-Wreturn-type] 105 | } | ^ source/simulation.cpp: In member function ‘void SimulationObj::Export(const char*)’: source/simulation.cpp:336:9: warning: pointer ‘f’ may be used after ‘int fclose(FILE*)’ [-Wuse-after-free] 336 | fflush(f); | ~~~~~~^~~ source/simulation.cpp:335:9: note: call to ‘int fclose(FILE*)’ here 335 | fclose(f); | ~~~~~~^~~ g++ source/calc.cpp syntax.o vector.o table.o peak.o box.o grid.o field.o interpol.o fplot.o gate.o loop.o simulation.o markov.o -lm -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -O -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -o calc mv *o source/ echo '*** Compilation completed successfully ***' *** Compilation completed successfully *** source/calc.cpp: In function ‘int main(int, char**)’: source/calc.cpp:181:11: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 181 | if ( vary() ) for (int i = 0; i < result.size; i++) | ^ source/calc.cpp:206:30: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[100]’ [-Wformat=] 206 | scanf("%s", &s); } | ~^ ~~ | | | | | char (*)[100] | char* source/calc.cpp: In function ‘void Ca1DstepCoop(FieldObj&, VectorObj&, BufferArray&, BufferArray&, double)’: source/calc.cpp:533:19: warning: unused variable ‘tStore’ [-Wunused-variable] 533 | double tStore = Ca.Time; | ^~~~~~ source/calc.cpp: In function ‘void getRun(TokenString&, int, bool*, double*, double*, double*, double*, double*, double*)’: source/calc.cpp:675:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 675 | if (adaptive) | ^ source/calc.cpp:685:6: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 685 | if ( ! isLineEnd(TS[pos + 1]) ) | ^ source/calc.cpp: In function ‘int main(int, char**)’: source/calc.cpp:133:11: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 133 | scanf("%s", fname); | ~~~~~^~~~~~~~~~~~~ source/calc.cpp:206:27: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 206 | scanf("%s", &s); } | ~~~~~^~~~~~~~~~ source/calc.cpp: In function ‘const char* getMethod(void (*&)(FieldObj&, VectorObj&, BufferArray&, BufferArray&, double), void (*&)(BufferArray&, BufferArray&, VectorObj&, VectorObj&, double))’: source/calc.cpp:656:2: warning: control reaches end of non-void function [-Wreturn-type] 656 | } | ^ + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.6uH4MD + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/calcium-calculator-7.9.5-11.fc40.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/calcium-calculator-7.9.5-11.fc40.riscv64 ++ dirname /builddir/build/BUILDROOT/calcium-calculator-7.9.5-11.fc40.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/calcium-calculator-7.9.5-11.fc40.riscv64 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd calcium-calculator-7.9.5 + mv -v calc calcium-calculator renamed 'calc' -> 'calcium-calculator' + install -p -m 755 -D -t /builddir/build/BUILDROOT/calcium-calculator-7.9.5-11.fc40.riscv64//usr/bin calcium-calculator + /usr/bin/find-debuginfo -j4 --strict-build-id -m -i --build-id-seed 7.9.5-11.fc40 --unique-debug-suffix -7.9.5-11.fc40.riscv64 --unique-debug-src-base calcium-calculator-7.9.5-11.fc40.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/calcium-calculator-7.9.5 find-debuginfo: starting Extracting debug info from 1 files DWARF-compressing 1 files sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. Creating .debug symlinks for symlinks to ELF files Copying sources found by 'debugedit -l' to /usr/src/debug/calcium-calculator-7.9.5-11.fc40.riscv64 827 blocks find-debuginfo: done + /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/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j4 + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: calcium-calculator-7.9.5-11.fc40.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.wXpPdS + umask 022 + cd /builddir/build/BUILD + cd calcium-calculator-7.9.5 + DOCDIR=/builddir/build/BUILDROOT/calcium-calculator-7.9.5-11.fc40.riscv64/usr/share/doc/calcium-calculator + export LC_ALL= + LC_ALL= + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/calcium-calculator-7.9.5-11.fc40.riscv64/usr/share/doc/calcium-calculator + cp -pr /builddir/build/BUILD/calcium-calculator-7.9.5/README.txt /builddir/build/BUILDROOT/calcium-calculator-7.9.5-11.fc40.riscv64/usr/share/doc/calcium-calculator + cp -pr /builddir/build/BUILD/calcium-calculator-7.9.5/examples /builddir/build/BUILDROOT/calcium-calculator-7.9.5-11.fc40.riscv64/usr/share/doc/calcium-calculator + RPM_EC=0 ++ jobs -p + exit 0 Provides: calcium-calculator = 7.9.5-11.fc40 calcium-calculator(riscv-64) = 7.9.5-11.fc40 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) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.38)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.27)(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) rtld(GNU_HASH) Processing files: calcium-calculator-debugsource-7.9.5-11.fc40.riscv64 Provides: calcium-calculator-debugsource = 7.9.5-11.fc40 calcium-calculator-debugsource(riscv-64) = 7.9.5-11.fc40 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: calcium-calculator-debuginfo-7.9.5-11.fc40.riscv64 Provides: calcium-calculator-debuginfo = 7.9.5-11.fc40 calcium-calculator-debuginfo(riscv-64) = 7.9.5-11.fc40 debuginfo(build-id) = 422ba31964e3b95899657f2c63d7de55ad51f890 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: calcium-calculator-debugsource(riscv-64) = 7.9.5-11.fc40 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/calcium-calculator-7.9.5-11.fc40.riscv64 Wrote: /builddir/build/RPMS/calcium-calculator-7.9.5-11.fc40.riscv64.rpm Wrote: /builddir/build/RPMS/calcium-calculator-debugsource-7.9.5-11.fc40.riscv64.rpm Wrote: /builddir/build/RPMS/calcium-calculator-debuginfo-7.9.5-11.fc40.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.AQwbmq + umask 022 + cd /builddir/build/BUILD + cd calcium-calculator-7.9.5 + /usr/bin/rm -rf /builddir/build/BUILDROOT/calcium-calculator-7.9.5-11.fc40.riscv64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.elxPJN + umask 022 + cd /builddir/build/BUILD + rm -rf /builddir/build/BUILD/calcium-calculator-7.9.5-SPECPARTS + rm -rf calcium-calculator-7.9.5 calcium-calculator-7.9.5.gemspec + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0