[hatari-devel] Lowering error level on the cirrus-ci for hatari ? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
Hi
with latest WinUAE's cpu changes, there're 2 unused variables. This can
be fixed easily (I reported to Toni to change it upstream if possible),
but it makes the compilation fails on cirrus-ci
https://cirrus-ci.com/github/hatari/hatari
/tmp/cirrus-ci-build/src/cpu/gencpu.c: In function 'gen_opcode':
/tmp/cirrus-ci-build/src/cpu/gencpu.c:9522:45: error: unused variable
'iplfetchp' [-Werror=unused-variable]
9522 | char iplfetch[100], iplfetchp[100];
| ^~~~~~~~~
/tmp/cirrus-ci-build/src/cpu/gencpu.c:9520:21: error: variable 'ipladd'
set but not used [-Werror=unused-but-set-variable]
9520 | int ipladd = 0;
| ^~~~~~
cc1: all warnings being treated as errors
make[2]: *** [src/cpu/CMakeFiles/gencpu.dir/build.make:81:
src/cpu/CMakeFiles/gencpu.dir/gencpu.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:745:
src/cpu/CMakeFiles/gencpu.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Thomas, maybe it would be better to change flags to not fail on warnings
but to continue anyway ? (when compiling locally on my PC these 2
warnings are not causing an error)
Nicolas