teeio-validator build failed in RedHat 8.5.
gcc version is 8.5.0 20210514 (Red Hat 8.5.0-10)
[ 87%] Built target spdm_device_secret_lib_sample
tee-io-validator/teeio-validator/teeio_validator/ide_test_ini.c: In function ‘dump_test_config’:
tee-io-validator/teeio-validator/teeio_validator/ide_test_ini.c:2442:25: error: ‘main’ is usually a function [-Werror=main]
IDE_TEST_MAIN_CONFIG *main = &test_config->main_config;
^~~~
tee-io-validator/teeio-validator/teeio_validator/ide_test_ini.c: In function ‘dump_test_config’:
tee-io-validator/teeio-validator/teeio_validator/ide_test_ini.c:2442:25: error: ‘main’ is usually a function [-Werror=main]
IDE_TEST_MAIN_CONFIG *main = &test_config->main_config;
^~~~
make[2]: Warning: File 'tee-io-validator/teeio-validator/teeio_validator/teeio_validator.c' has modification time 41790 s in the future
teeio-validator build failed in RedHat 8.5. gcc version is 8.5.0 20210514 (Red Hat 8.5.0-10)