of non-void function [-Wreturn-type] BUILDSTDERR: install_int_ex(go_sec, BPS_TO_TIMER(1000)); //increments sec 1000 times a second BUILDSTDERR: ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: main.cpp: In function 'void load_ship_atts(TShipAtts*)': BUILDSTDERR: main.cpp:954:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fscanf(fp,"%d",&numWeaponsSets); BUILDSTDERR: ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: main.cpp:960:23: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fscanf(fp,"%d ", &set.maxAmmo[i]); BUILDSTDERR: ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: main.cpp:975:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fscanf(fp,"%d",&iNumAtts); BUILDSTDERR: ~~~~~~^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: main.cpp:979:19: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fscanf(fp,"%f %f %f %f %f %f %f %f %f %d %d %d", BUILDSTDERR: ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: &atts[n].fAccel, BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: &atts[n].fMaxVel, BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: &atts[n].fRevAccel, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: &atts[n].fMaxRevVel, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: &atts[n].fAngAccel, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: &atts[n].fMaxAngVel, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: &atts[n].fDampening, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: &atts[n].fAngDampening, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: &atts[n].fMass, BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: &atts[n].armor, BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: &atts[n].shield, BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: &atts[n].weaponsSet); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: main.cpp: In function 'void loadModels(char*)': BUILDSTDERR: main.cpp:1548:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fscanf(fp,"%d",&iNumModels); BUILDSTDERR: ~~~~~~^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: main.cpp:1551:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fscanf(fp,"%s",modelName); BUILDSTDERR: ~~~~~~^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: make: *** [Makefile:14: main.o] Error 1 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.58Qss5 (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.58Qss5 (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/duel3.spec