Mock Version: 1.4.14 Mock Version: 1.4.14 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/calcium-calculator.spec'], chrootPath='/var/lib/mock/f31-build-56617-28225/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=345600uid=986gid=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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1563494400 Wrote: /builddir/build/SRPMS/calcium-calculator-7.9.5-1.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/calcium-calculator.spec'], chrootPath='/var/lib/mock/f31-build-56617-28225/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=345600uid=986gid=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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1563494400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ILVIE3 + 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/bin/gzip -dc /builddir/build/SOURCES/calc_unix_7.9.5.tgz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /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 add . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'calcium-calculator-7.9.5 base' + /usr/bin/cat /builddir/build/SOURCES/0002-Fix-invalid-conversion-from-char-to-char.patch + /usr/bin/git apply --index - BUILDSTDERR: :19: trailing whitespace. BUILDSTDERR: if ( !( sind = strtok( NULL, "}") ) ) errorMessage( token_index(s), 0, "No closing curly bracket" ); BUILDSTDERR: 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/bin/cat /builddir/build/SOURCES/0003-Include-build-flags.patch + /usr/bin/git apply --index - + /usr/bin/git commit -q -m 0003-Include-build-flags.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0004-Fix-format-security-issues.patch + /usr/bin/git apply --index - + /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 BUILDSTDERR: ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.o5oal3 + umask 022 + cd /builddir/build/BUILD + cd calcium-calculator-7.9.5 + CFLAGS='-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' + export CFLAGS + 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' + export CXXFLAGS + FFLAGS='-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 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-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 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + /usr/bin/make -O -j4 V=1 VERBOSE=1 BUILDSTDERR: mv: cannot stat 'source/*o': No such file or directory BUILDSTDERR: make: [Makefile:57: moveobjects] Error 1 (ignored) BUILDSTDERR: source/table.cpp: In constructor 'TableObj::TableObj(const char*, char*)': BUILDSTDERR: source/table.cpp:54:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 54 | fgets(s, 255, file); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~ BUILDSTDERR: source/table.cpp:68:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 68 | fgets(s, 255, file); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~ BUILDSTDERR: source/vector.cpp: In member function 'void VectorObj::import(const char*)': BUILDSTDERR: 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] BUILDSTDERR: 327 | fread( (void *)(&n), sizeof(long), 1, f); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 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] BUILDSTDERR: 331 | fread( (void *)elem, sizeof(double), size, f); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: source/box.cpp: In constructor 'RegionObj::RegionObj(TokenString&)': BUILDSTDERR: source/box.cpp:261:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 261 | if (enclosures[i].xmin < XMin) XMin = enclosures[i].xmin; if (enclosures[i].xmax > XMax) XMax = enclosures[i].xmax; BUILDSTDERR: | ^~ BUILDSTDERR: source/box.cpp:261:62: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: 261 | if (enclosures[i].xmin < XMin) XMin = enclosures[i].xmin; if (enclosures[i].xmax > XMax) XMax = enclosures[i].xmax; BUILDSTDERR: | ^~ BUILDSTDERR: source/box.cpp:264:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 264 | if (enclosures[i].ymin < YMin) YMin = enclosures[i].ymin; if (enclosures[i].ymax > YMax) YMax = enclosures[i].ymax; BUILDSTDERR: | ^~ BUILDSTDERR: source/box.cpp:264:62: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: 264 | if (enclosures[i].ymin < YMin) YMin = enclosures[i].ymin; if (enclosures[i].ymax > YMax) YMax = enclosures[i].ymax; BUILDSTDERR: | ^~ BUILDSTDERR: source/box.cpp:267:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 267 | if (enclosures[i].zmin < ZMin) ZMin = enclosures[i].zmin; if (enclosures[i].zmax > ZMax) ZMax = enclosures[i].zmax; BUILDSTDERR: | ^~ BUILDSTDERR: source/box.cpp:267:62: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: 267 | if (enclosures[i].zmin < ZMin) ZMin = enclosures[i].zmin; if (enclosures[i].zmax > ZMax) ZMax = enclosures[i].zmax; BUILDSTDERR: | ^~ BUILDSTDERR: source/box.cpp: In member function 'int RegionObj::point_type(int, int, int, int, VolumeObjClass*)': BUILDSTDERR: source/box.cpp:343:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 343 | if (fieldObstNum) BUILDSTDERR: | ^~ BUILDSTDERR: source/box.cpp:356:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: 356 | if ( inside == 0 ) return 0; BUILDSTDERR: | ^~ BUILDSTDERR: source/box.cpp: In member function 'int VolumeObjClass::inside(int, int, int)': BUILDSTDERR: source/box.cpp:90:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: 90 | } BUILDSTDERR: | ^ BUILDSTDERR: source/grid.cpp: In member function 'void GridObj::grid_stretch(const char*, double, double, double)': BUILDSTDERR: source/grid.cpp:243:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 243 | if (x1 < cmin) x1 = cmin; if (x1 > cmax) x1 = cmax; BUILDSTDERR: | ^~ BUILDSTDERR: source/grid.cpp:243:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: 243 | if (x1 < cmin) x1 = cmin; if (x1 > cmax) x1 = cmax; BUILDSTDERR: | ^~ BUILDSTDERR: source/grid.cpp:244:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 244 | if (x2 < cmin) x2 = cmin; if (x2 > cmax) x2 = cmax; BUILDSTDERR: | ^~ BUILDSTDERR: source/grid.cpp:244:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: 244 | if (x2 < cmin) x2 = cmin; if (x2 > cmax) x2 = cmax; BUILDSTDERR: | ^~ BUILDSTDERR: source/grid.cpp:298:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: 298 | if ( n2 > n1 ) BUILDSTDERR: | ^ BUILDSTDERR: source/grid.cpp:234:61: warning: unused variable 'fmax' [-Wunused-variable] BUILDSTDERR: 234 | double eps = 1.0e-14, tiny = 1.0e-15, cmin, cmax, sfn, fmax = 2.0; BUILDSTDERR: | ^~~~ BUILDSTDERR: source/grid.cpp:274:10: warning: variable 'y1' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 274 | double y1 = (X / dx1 - N - correct) * logf - log23f + log( (2*X1*f1 / dx1 + f2 )*( 2*X2*f1 / dx1 + f2 ) ); BUILDSTDERR: | ^~ BUILDSTDERR: source/grid.cpp: In member function 'double GridObj::stretchFactorCorrection(double, double, int, double&)': BUILDSTDERR: source/grid.cpp:354:16: warning: variable 'y1' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 354 | double y0, y1, yn; BUILDSTDERR: | ^~ BUILDSTDERR: source/grid.cpp: In member function 'void BCarrayObj::set_bc_types(TokenString&)': BUILDSTDERR: source/grid.cpp:644:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: 644 | if (!b && !c) BUILDSTDERR: | ^ BUILDSTDERR: source/interpol.cpp: In constructor 'InterpolObj::InterpolObj(TokenString&, long int, FieldObj*)': BUILDSTDERR: source/interpol.cpp:165:11: warning: this 'while' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 165 | while (x > xcoord[ix] && ix < xsize - 1) ix++; x0 = xcoord[ix-1]; x1 = xcoord[ix]; BUILDSTDERR: | ^~~~~ BUILDSTDERR: source/interpol.cpp:165:59: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while' BUILDSTDERR: 165 | while (x > xcoord[ix] && ix < xsize - 1) ix++; x0 = xcoord[ix-1]; x1 = xcoord[ix]; BUILDSTDERR: | ^~ BUILDSTDERR: source/interpol.cpp: In constructor 'InterpolArray::InterpolArray(TokenString&, FieldObj*, BufferArray*)': BUILDSTDERR: source/interpol.cpp:237:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 237 | if (Bufs) BUILDSTDERR: | ^~ BUILDSTDERR: source/interpol.cpp:241:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: 241 | array = new InterpolObj *[interpol_num]; BUILDSTDERR: | ^~~~~ BUILDSTDERR: In file included from source/interpol.cpp:43: BUILDSTDERR: source/field.h: In member function 'double FieldObj::average(double*)': BUILDSTDERR: source/field.h:213:3: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: 213 | } BUILDSTDERR: | ^ BUILDSTDERR: source/syntax.cpp: In member function 'char* TokenString::getVarName(long int, const char*, int)': BUILDSTDERR: source/syntax.cpp:152:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: 152 | if ( !isLineStart( token_ptr[p - 1] ) ) BUILDSTDERR: | ^ BUILDSTDERR: source/syntax.cpp: In member function 'void TokenString::parse(const char*, const char*, const char*, int, char**)': BUILDSTDERR: source/syntax.cpp:266:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 266 | if ( ifLevel >= 0 ) //*** Skip token BUILDSTDERR: | ^~ BUILDSTDERR: source/syntax.cpp:271:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: 271 | if ( ::equal(token, THEN_TOKEN) ) { BUILDSTDERR: | ^~ BUILDSTDERR: source/syntax.cpp:319:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 319 | if (token[0] == '$') BUILDSTDERR: | ^~ BUILDSTDERR: source/syntax.cpp:330:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: 330 | addToken(token, currentLine, currentScript); //!!! All contingencies checked -> add the token to the list !!! BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: source/syntax.cpp:319:9: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: 319 | if (token[0] == '$') BUILDSTDERR: | ^ BUILDSTDERR: source/syntax.cpp: In member function 'void TokenString::getToken(char*&, char*&, char*, bool)': BUILDSTDERR: source/syntax.cpp:377:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 377 | for (i = 0; i < ALIAS_NUM; i++) // *** 1. Look for alias tokens first BUILDSTDERR: | ^~~ BUILDSTDERR: source/syntax.cpp:380:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' BUILDSTDERR: 380 | if (expression_flag) // *** 2. Look for numerical expression tokens next BUILDSTDERR: | ^~ BUILDSTDERR: source/syntax.cpp:381:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 381 | for (i=0; i< TYPE_NUM; i++) // except for "mod", "and" and "or" - no priority to these! BUILDSTDERR: | ^~~ BUILDSTDERR: source/syntax.cpp:384:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' BUILDSTDERR: 384 | for (i = 0; i < SPECIAL_NUM; i++) // *** 3. Then look for other special (non-delimited) tokens BUILDSTDERR: | ^~~ BUILDSTDERR: source/syntax.cpp:384:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: source/syntax.cpp:388:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' BUILDSTDERR: 388 | if ( is_short_token(*ptr1) && !is_sign(*ptr1) ) { ptr1++; return; } // 4. *** Single-character token BUILDSTDERR: | ^~ BUILDSTDERR: source/syntax.cpp: In member function 'int TokenString::token_count(const char*, long int*)': BUILDSTDERR: source/syntax.cpp:469:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 469 | for (long i=0; i 1 ) pr_old = priority[old = opStack[stackHead - 2]]; BUILDSTDERR: | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: source/syntax.cpp:1129:43: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 1129 | if (priority[ opStack[stackHead - 2] ] > pr_reduce) break; BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~^ BUILDSTDERR: source/syntax.cpp:1148:44: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 1148 | if (priority[ opStack[stackHead - 2] ] > pr_reduce) break; BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~^ BUILDSTDERR: source/syntax.cpp:1098:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 1098 | while ( stackHead ) BUILDSTDERR: | ^~~~~ BUILDSTDERR: source/syntax.cpp:1180:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while' BUILDSTDERR: 1180 | opStack[ stackHead++ ] = op; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: source/syntax.cpp: In constructor 'ExpressionObj::ExpressionObj(TokenString&, long int, const char*, VarList*, long int*, double*, const char*, double*, const char*, double*, const char*)': BUILDSTDERR: source/syntax.cpp:1307:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: 1307 | else if ( !isOperand(term_array[term-1].type) ) BUILDSTDERR: | ^ BUILDSTDERR: source/syntax.cpp:1316:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 1316 | if ( isBinary(tp) ) // catch a binary operator as first token, or two binaries in a row BUILDSTDERR: | ^~ BUILDSTDERR: source/syntax.cpp:1320:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: 1320 | if ( isUnary(tp) && term > 0 ) // catch a unary operator following an operand BUILDSTDERR: | ^~ BUILDSTDERR: source/syntax.cpp:1316:9: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: 1316 | if ( isBinary(tp) ) // catch a binary operator as first token, or two binaries in a row BUILDSTDERR: | ^ BUILDSTDERR: source/syntax.cpp:1328:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 1328 | if ( isFunction( tp ) && term > 0 ) BUILDSTDERR: | ^~ BUILDSTDERR: source/syntax.cpp:1334:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: 1334 | break; BUILDSTDERR: | ^~~~~ BUILDSTDERR: source/syntax.cpp:1297:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 1297 | for (tp = 0; tp < TYPE_NUM; tp++) BUILDSTDERR: | ^~~ BUILDSTDERR: source/syntax.cpp:1337:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' BUILDSTDERR: 1337 | if ( tp >= TYPE_NUM) { // did not match any token BUILDSTDERR: | ^~ BUILDSTDERR: source/syntax.cpp: In member function 'void ExpressionObj::buildFormulaString(VarList*, double*, const char*, double*, const char*, double*, const char*, const char*)': BUILDSTDERR: source/syntax.cpp:1420:60: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 1420 | if ( tp != T_MULT ) strcat(formula, type_id[tp]); else continue; BUILDSTDERR: | ^~ BUILDSTDERR: source/syntax.cpp:1423:16: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 1423 | if ( term_array[term].val == 0 && (term + 2) < term_num ) // process a "0 - number" combination, BUILDSTDERR: | ^~ BUILDSTDERR: source/syntax.cpp:1428:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: 1428 | char value[64]; BUILDSTDERR: | ^~~~ BUILDSTDERR: source/syntax.cpp: In function 'FILE* fopenAssure(const char*, const char*, const char*, const char*)': BUILDSTDERR: source/syntax.cpp:1454:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] BUILDSTDERR: 1454 | else if ( f = fopen(fname, mode) ) return f; BUILDSTDERR: | ~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: source/syntax.cpp: In member function 'void TokenString::parse(const char*, const char*, const char*, int, char**)': BUILDSTDERR: source/syntax.cpp:222:15: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 222 | else { fgets(lineString,MAX_LINE_LENGTH,f); currentLine ++; if ( feof(f) ) break; } BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/string.h:494, BUILDSTDERR: from source/syntax.cpp:34: BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'void TokenString::addToken(const char*, int, int)' at source/syntax.cpp:429:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: 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] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: source/syntax.cpp: In member function 'void TokenString::addToken(const char*, int, int)': BUILDSTDERR: source/syntax.cpp:419:22: note: length computed here BUILDSTDERR: 419 | int tlength = strlen(token); BUILDSTDERR: | ~~~~~~^~~~~~~ BUILDSTDERR: source/syntax.cpp: In member function 'void ExpressionObj::buildFormulaString(VarList*, double*, const char*, double*, const char*, double*, const char*, const char*)': BUILDSTDERR: source/syntax.cpp:1439:23: warning: 'str' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 1439 | delete str; BUILDSTDERR: | ^~~ BUILDSTDERR: source/syntax.cpp: In member function 'void TokenString::printResults(VarList*)': BUILDSTDERR: source/syntax.cpp:936:18: warning: 'fileStr' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 936 | f = fopenAssure(fileStr,"w","the output of \"print\" statements", ""); BUILDSTDERR: | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: source/loop.cpp: In constructor 'LoopObj::LoopObj(TokenString&, VectorObj*)': BUILDSTDERR: source/loop.cpp:172:39: warning: 'graphNum' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 172 | ((XmgrPointPlot *)(plots->array[graphNum]))->set_set( (*result)()+i, xPtr, trackIDs[i]); BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: source/gate.cpp: In member function 'void KineticObj::setNames_ODE_IC(TokenString*, long int*)': BUILDSTDERR: source/gate.cpp:176:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: 176 | if ( Param->token3_count(var_id[i], "(", "0", &pos ) ) BUILDSTDERR: | ^ BUILDSTDERR: source/gate.cpp: In member function 'double KineticObj::RungeKuttaAdaptive(double, double, PlotArray*, RunStatusString*, double, double, long int)': BUILDSTDERR: source/gate.cpp:470:52: warning: 'NORMeps' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 470 | if ( (norm = derivative().norm() ) < NORMeps || ++count > maxSteps ) break; } BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: source/field.cpp: In member function 'void FieldObj::getCurrents(TokenString&, int, VarList*, double*)': BUILDSTDERR: source/field.cpp:193:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] BUILDSTDERR: 193 | else if ( ptr = VL->ResolveID(Params[pos + si]) ) { BUILDSTDERR: | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: source/field.cpp: In member function 'void FieldObj::set_source(int, double, double, double, double, double, double)': BUILDSTDERR: source/field.cpp:635:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 635 | if (DIMENSIONALITY > 2) fprintf(stderr, ",%g",z); BUILDSTDERR: | ^~ BUILDSTDERR: source/field.cpp:636:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: 636 | fprintf(stderr, "), with half-width of (%g", sigmax); BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: source/field.cpp:638:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 638 | if (DIMENSIONALITY > 2) fprintf(stderr, ",%g",sigmaz); BUILDSTDERR: | ^~ BUILDSTDERR: source/field.cpp:639:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: 639 | fprintf(stderr, ")"); BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: source/field.cpp:653:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 653 | if (DIMENSIONALITY > 2) fprintf(stderr, ",%d",iz); BUILDSTDERR: | ^~ BUILDSTDERR: source/field.cpp:654:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: 654 | fprintf(stderr, ") <--> (%.4g", xcoord[ix]); BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: source/field.cpp:656:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 656 | if (DIMENSIONALITY > 2) fprintf(stderr, ",%.4g",zcoord[iz]); BUILDSTDERR: | ^~ BUILDSTDERR: source/field.cpp:657:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: 657 | fprintf(stderr, "), point_type="); BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: source/field.cpp: In member function 'void FieldObj::init_boundary()': BUILDSTDERR: source/field.cpp:924:15: warning: unused variable 'bc' [-Wunused-variable] BUILDSTDERR: 924 | int p, bc = 0, boxid; BUILDSTDERR: | ^~ BUILDSTDERR: source/field.cpp: In member function 'void FieldObj::nablaX(long int, int, long int, double&, double&, double&, double&)': BUILDSTDERR: source/field.cpp:1728:18: warning: unused variable 'pterm' [-Wunused-variable] BUILDSTDERR: 1728 | double bdx2, pterm = 0; BUILDSTDERR: | ^~~~~ BUILDSTDERR: source/field.cpp: In member function 'void FieldObj::nablaY(long int, int, long int, double&, double&, double&, double&, double)': BUILDSTDERR: source/field.cpp:1765:18: warning: unused variable 'pterm' [-Wunused-variable] BUILDSTDERR: 1765 | double bdx2, pterm = 0; BUILDSTDERR: | ^~~~~ BUILDSTDERR: source/field.cpp: In member function 'void FieldObj::nablaZ(long int, int, long int, double&, double&, double&, double&, double)': BUILDSTDERR: source/field.cpp:1803:18: warning: unused variable 'pterm' [-Wunused-variable] BUILDSTDERR: 1803 | double bdx2, pterm = 0; BUILDSTDERR: | ^~~~~ BUILDSTDERR: source/field.cpp: In constructor 'BufferObj::BufferObj(TokenString&, const char*, char)': BUILDSTDERR: source/field.cpp:1903:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: 1903 | if ( fplus == 0) BUILDSTDERR: | ^ BUILDSTDERR: source/field.cpp:1911:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: 1911 | if ( fminus == 0) BUILDSTDERR: | ^ BUILDSTDERR: source/field.cpp: In member function 'void BufferObj::setMembraneLayer(double, double)': BUILDSTDERR: source/field.cpp:1983:21: warning: variable 'dx' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 1983 | double *coord, dx; BUILDSTDERR: | ^~ BUILDSTDERR: source/field.cpp: In member function 'long int FieldObj::location_to_index(double, double, double, bool)': BUILDSTDERR: source/field.cpp:623:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: 623 | } BUILDSTDERR: | ^ BUILDSTDERR: In file included from source/field.cpp:48: BUILDSTDERR: source/field.h: In member function 'double FieldObj::average(double*)': BUILDSTDERR: source/field.h:213:3: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: 213 | } BUILDSTDERR: | ^ BUILDSTDERR: source/field.cpp: In member function 'void BufferObj::setMembraneLayer(double, double)': BUILDSTDERR: source/field.cpp:1983:14: warning: 'coord' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 1983 | double *coord, dx; BUILDSTDERR: | ^~~~~ BUILDSTDERR: source/field.cpp:1982:28: warning: 'incr' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 1982 | int ix, iy, iz, j, incr; BUILDSTDERR: | ^~~~ BUILDSTDERR: source/field.cpp:2007:34: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 2007 | double coordinate = coord[j]; BUILDSTDERR: | ^ BUILDSTDERR: source/field.cpp:1981:21: warning: 'Incr' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 1981 | long ii, jj, Incr; BUILDSTDERR: | ^~~~ BUILDSTDERR: source/fplot.cpp: In member function 'virtual void FieldPlot1D::get_range()': BUILDSTDERR: source/fplot.cpp:442:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: 442 | if (field->ptype[ind] & VARY_MASK) BUILDSTDERR: | ^ BUILDSTDERR: source/fplot.cpp: In member function 'void RunStatusString::update(char)': BUILDSTDERR: source/fplot.cpp:1289:21: warning: operation on '((RunStatusString*)this)->RunStatusString::widgetCount' may be undefined [-Wsequence-point] BUILDSTDERR: 1289 | widgetCount = ++widgetCount % 4; BUILDSTDERR: | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: source/fplot.cpp: In member function 'virtual void FieldDumpT::draw()': BUILDSTDERR: source/fplot.cpp:183:12: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 183 | fread ( (void *)&tempTime, sizeof(double), 1, file); BUILDSTDERR: | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: source/fplot.cpp:184:12: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 184 | fread ( (void *)buffer, sizeof(double), field->size, file); BUILDSTDERR: | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: source/fplot.cpp:197:13: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 197 | fread ( (void *)&tempTime, sizeof(double), 1, file); BUILDSTDERR: | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: source/fplot.cpp:198:13: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 198 | fread ( (void *)buffer, sizeof(double), field->size, file); BUILDSTDERR: | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from source/fplot.cpp:48: BUILDSTDERR: source/fplot.h: In member function 'void FieldDumpT::chuckHeader(FILE*, void*)': BUILDSTDERR: source/fplot.h:282:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 282 | fread( (void *)buffer, sizeof(int), DIMENSIONALITY + 1, ff); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: source/fplot.h:283:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 283 | fread( (void *)buffer, sizeof(double), field->xsize, ff); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: source/fplot.h:284:32: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 284 | if (DIMENSIONALITY > 1) fread( (void *)buffer, sizeof(double), field->ysize, ff); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: source/fplot.h:285:32: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 285 | if (DIMENSIONALITY > 2) fread( (void *)buffer, sizeof(double), field->zsize, ff); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: source/fplot.cpp: In constructor 'PlotArray::PlotArray(SimulationObj&)': BUILDSTDERR: source/fplot.cpp:1463:62: warning: '%s' directive writing up to 254 bytes into a region of size between 128 and 255 [-Wformat-overflow=] BUILDSTDERR: 1463 | if ( !equal(ptype,"1D.mute") ) { sprintf(fileName, "%s%s", prefix, array[count]->win_title); BUILDSTDERR: | ^~ BUILDSTDERR: In file included from /usr/include/stdio.h:867, BUILDSTDERR: from source/fplot.cpp:32: BUILDSTDERR: /usr/include/bits/stdio2.h:36:34: note: '__builtin___sprintf_chk' output between 1 and 382 bytes into a destination of size 255 BUILDSTDERR: 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 37 | __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from source/fplot.cpp:48: BUILDSTDERR: source/fplot.h:256:49: warning: '%s' directive writing up to 254 bytes into a region of size 231 [-Wformat-overflow=] BUILDSTDERR: 256 | sprintf(win_title, "%s (binary plot into file %s)", field->ID, fileName); BUILDSTDERR: | ^~ BUILDSTDERR: In file included from /usr/include/stdio.h:867, BUILDSTDERR: from source/fplot.cpp:32: BUILDSTDERR: /usr/include/bits/stdio2.h:36:34: note: '__builtin___sprintf_chk' output 26 or more bytes (assuming 280) into a destination of size 255 BUILDSTDERR: 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 37 | __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from source/fplot.cpp:48: BUILDSTDERR: source/fplot.h:223:36: warning: '%s' directive writing up to 254 bytes into a region of size 243 [-Wformat-overflow=] BUILDSTDERR: 223 | sprintf(win_title, "%s (dump into %s at time %g)", f->ID, fileName, t); BUILDSTDERR: | ^~ BUILDSTDERR: source/fplot.h:223:21: note: assuming directive output of 12 bytes BUILDSTDERR: 223 | sprintf(win_title, "%s (dump into %s at time %g)", f->ID, fileName, t); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:867, BUILDSTDERR: from source/fplot.cpp:32: BUILDSTDERR: /usr/include/bits/stdio2.h:36:34: note: '__builtin___sprintf_chk' output 24 or more bytes (assuming 289) into a destination of size 255 BUILDSTDERR: 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 37 | __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: source/fplot.cpp:1420:62: warning: '%s' directive writing up to 254 bytes into a region of size between 128 and 255 [-Wformat-overflow=] BUILDSTDERR: 1420 | if ( !equal(ptype,"2D.mute") ) { sprintf(fileName, "%s%s", prefix, array[count]->win_title); BUILDSTDERR: | ^~ BUILDSTDERR: In file included from /usr/include/stdio.h:867, BUILDSTDERR: from source/fplot.cpp:32: BUILDSTDERR: /usr/include/bits/stdio2.h:36:34: note: '__builtin___sprintf_chk' output between 1 and 382 bytes into a destination of size 255 BUILDSTDERR: 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 37 | __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: source/fplot.cpp:1390:33: warning: '%s' directive writing up to 199 bytes into a region of size between 128 and 255 [-Wformat-overflow=] BUILDSTDERR: 1390 | else sprintf(fileName,"%s%s", prefix, VarID); BUILDSTDERR: | ^~ ~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:867, BUILDSTDERR: from source/fplot.cpp:32: BUILDSTDERR: /usr/include/bits/stdio2.h:36:34: note: '__builtin___sprintf_chk' output between 1 and 327 bytes into a destination of size 255 BUILDSTDERR: 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 37 | __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: source/fplot.cpp:1385:32: warning: 'xmgr_plot' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 1385 | ((XmgrPointPlot *)array[xmgr_plot])->set_set(kin_ptr, time_ptr, VarID); BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: source/markov.cpp: In member function 'void MarkovObj::set_matrix(TokenString&, VarList*)': BUILDSTDERR: source/markov.cpp:135:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] BUILDSTDERR: 135 | else if (ptr = VL->ResolveID(element) ) { BUILDSTDERR: | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: source/simulation.cpp: In member function 'long int SimulationObj::Adaptive(double)': BUILDSTDERR: source/simulation.cpp:455:16: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'long int' [-Wsign-compare] BUILDSTDERR: 455 | while (++i <= between_checks && !rvalue) { // loop over n="between_checks" iterations BUILDSTDERR: | ~~~~^~~~~~~~~~~~~~~~~ BUILDSTDERR: source/simulation.cpp:439:27: warning: unused variable 'flag' [-Wunused-variable] BUILDSTDERR: 439 | int rvalue = 0, flag = 0; BUILDSTDERR: | ^~~~ BUILDSTDERR: source/simulation.cpp: In member function 'virtual void SimulationObj::Run()': BUILDSTDERR: source/simulation.cpp:604:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: 604 | if (VERBOSE) BUILDSTDERR: | ^ BUILDSTDERR: source/simulation.cpp: In member function 'void SimulationObj::Import(const char*)': BUILDSTDERR: 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] BUILDSTDERR: 356 | fread( (void *)&n, sizeof(long), 1, f); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 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] BUILDSTDERR: 376 | fread( &m, sizeof(int), 1, f); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 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] BUILDSTDERR: 379 | fread( (void *)(Gates->var->elem), sizeof(double), Gates->var_num, f); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 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] BUILDSTDERR: 384 | fread( (void *)endtag, sizeof(char), strlen("endtag")+1, f ); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from source/simulation.cpp:47: BUILDSTDERR: source/vector.h: In member function 'double VectorObj::checkerBoardNorm(int, int, int)': BUILDSTDERR: source/vector.h:105:3: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: 105 | } BUILDSTDERR: | ^ mv source/*o ./ g++ source/peak.cpp -O -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 -c g++ source/table.cpp -O -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 -c g++ source/vector.cpp -O -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 -c g++ source/box.cpp -O -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 -c g++ source/grid.cpp -O -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 -c g++ source/interpol.cpp -O -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 -c g++ source/syntax.cpp -O -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 -c g++ source/loop.cpp -O -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 -c g++ source/gate.cpp -O -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 -c g++ source/field.cpp -O -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 -c g++ source/fplot.cpp -O -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 -c g++ source/markov.cpp -O -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 -c BUILDSTDERR: g++ source/simulation.cpp -O -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fssource/calc.cpp: In function 'int main(int, char**)': BUILDSTDERR: source/calc.cpp:181:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: 181 | if ( vary() ) for (int i = 0; i < result.size; i++) BUILDSTDERR: | ^ BUILDSTDERR: source/calc.cpp:206:16: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[100]' [-Wformat=] BUILDSTDERR: 206 | scanf("%s", &s); } BUILDSTDERR: | ~^ ~~ BUILDSTDERR: | | | BUILDSTDERR: | | char (*)[100] BUILDSTDERR: | char* BUILDSTDERR: source/calc.cpp: In function 'void Ca1DstepCoop(FieldObj&, VectorObj&, BufferArray&, BufferArray&, double)': BUILDSTDERR: source/calc.cpp:533:12: warning: unused variable 'tStore' [-Wunused-variable] BUILDSTDERR: 533 | double tStore = Ca.Time; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: source/calc.cpp: In function 'void getRun(TokenString&, int, bool*, double*, double*, double*, double*, double*, double*)': BUILDSTDERR: source/calc.cpp:675:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: 675 | if (adaptive) BUILDSTDERR: | ^ BUILDSTDERR: source/calc.cpp:685:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] BUILDSTDERR: 685 | if ( ! isLineEnd(TS[pos + 1]) ) BUILDSTDERR: | ^ BUILDSTDERR: source/calc.cpp: In function 'int main(int, char**)': BUILDSTDERR: source/calc.cpp:133:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 133 | scanf("%s", fname); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~ BUILDSTDERR: source/calc.cpp:206:13: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 206 | scanf("%s", &s); } BUILDSTDERR: | ~~~~~^~~~~~~~~~ BUILDSTDERR: source/calc.cpp: In function 'const char* getMethod(void (*&)(FieldObj&, VectorObj&, BufferArray&, BufferArray&, double), void (*&)(BufferArray&, BufferArray&, VectorObj&, VectorObj&, double))': BUILDSTDERR: source/calc.cpp:656:2: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: 656 | } BUILDSTDERR: | ^ + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 tack-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 -c 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 -O -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 -o calc mv *o source/ echo '*** Compilation completed successfully ***' *** Compilation completed successfully *** Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.vUWk23 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/calcium-calculator-7.9.5-1.fc31.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/calcium-calculator-7.9.5-1.fc31.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/calcium-calculator-7.9.5-1.fc31.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/calcium-calculator-7.9.5-1.fc31.riscv64 + cd calcium-calculator-7.9.5 + install -p -m 755 -D -t /builddir/build/BUILDROOT/calcium-calculator-7.9.5-1.fc31.riscv64//usr/bin calc + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 7.9.5-1.fc31 --unique-debug-suffix -7.9.5-1.fc31.riscv64 --unique-debug-src-base calcium-calculator-7.9.5-1.fc31.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 BUILDSTDERR: 827 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/calcium-calculator-7.9.5-1.fc31.riscv64/usr/bin/calc extracting debug info from /builddir/build/BUILDROOT/calcium-calculator-7.9.5-1.fc31.riscv64/usr/bin/calc original debug info size: 1428kB, size after compression: 1160kB /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. Processing files: calcium-calculator-7.9.5-1.fc31.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.onFEH0 + umask 022 + cd /builddir/build/BUILD + cd calcium-calculator-7.9.5 + DOCDIR=/builddir/build/BUILDROOT/calcium-calculator-7.9.5-1.fc31.riscv64/usr/share/doc/calcium-calculator + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/calcium-calculator-7.9.5-1.fc31.riscv64/usr/share/doc/calcium-calculator + cp -pr README.txt /builddir/build/BUILDROOT/calcium-calculator-7.9.5-1.fc31.riscv64/usr/share/doc/calcium-calculator + cp -pr examples /builddir/build/BUILDROOT/calcium-calculator-7.9.5-1.fc31.riscv64/usr/share/doc/calcium-calculator + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Provides: calcium-calculator = 7.9.5-1.fc31 calcium-calculator(riscv-64) = 7.9.5-1.fc31 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) 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-1.fc31.riscv64 Provides: calcium-calculator-debugsource = 7.9.5-1.fc31 calcium-calculator-debugsource(riscv-64) = 7.9.5-1.fc31 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-1.fc31.riscv64 Provides: calcium-calculator-debuginfo = 7.9.5-1.fc31 calcium-calculator-debuginfo(riscv-64) = 7.9.5-1.fc31 debuginfo(build-id) = afca03b53f85051eb43a0d5850bce65b8d411798 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-1.fc31 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/calcium-calculator-7.9.5-1.fc31.riscv64 Wrote: /builddir/build/RPMS/calcium-calculator-7.9.5-1.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/calcium-calculator-debugsource-7.9.5-1.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/calcium-calculator-debuginfo-7.9.5-1.fc31.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.iiZTO2 + umask 022 + cd /builddir/build/BUILD + cd calcium-calculator-7.9.5 + /usr/bin/rm -rf /builddir/build/BUILDROOT/calcium-calculator-7.9.5-1.fc31.riscv64 + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Child return code was: 0