but we need use cmake to compile gcc version, btw I already took this task. and find some bugs like missing includes
(yaml-cpp brings some headers that now are missing).
One thing to you to fix could be reduce warning spam in GCC:
In file included from /home/Yankes/prog/openxcom/src/Ufopaedia/../Mod/RuleItem.h:23,
from /home/Yankes/prog/openxcom/src/Ufopaedia/ArticleState.h:21,
from /home/Yankes/prog/openxcom/src/Ufopaedia/Ufopaedia.h:24,
from /home/Yankes/prog/openxcom/src/Ufopaedia/UfopaediaSelectState.h:21,
from /home/Yankes/prog/openxcom/src/Ufopaedia/UfopaediaStartState.cpp:21:
/home/Yankes/prog/openxcom/src/Ufopaedia/../Mod/../Engine/Yaml.h:26: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
26 | #pragma warning(push)
|
/home/Yankes/prog/openxcom/src/Ufopaedia/../Mod/../Engine/Yaml.h:27: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
27 | #pragma warning(disable : 4668 6011 6255 6293 6386 26439 26495 26498 26819)
|
/home/Yankes/prog/openxcom/src/Ufopaedia/../Mod/../Engine/Yaml.h:30: warning: ignoring ‘#pragma warning ’ [-Wunknown-pragmas]
30 | #pragma warning(pop)
|
In file included from /home/Yankes/prog/openxcom/src/Ufopaedia/../Mod/../Engine/../../libs/rapidyaml/c4/yml/yml.hpp:11,
from /home/Yankes/prog/openxcom/src/Ufopaedia/../Mod/../Engine/../../libs/rapidyaml/ryml.hpp:4,
from /home/Yankes/prog/openxcom/src/Ufopaedia/../Mod/../Engine/Yaml.h:28:
/home/Yankes/prog/openxcom/libs/rapidyaml/c4/yml/parse.hpp:15:21: warning: redundant redeclaration of ‘c4::yml::id_type c4::yml::estimate_tree_capacity(c4::csubstr)’ in same scope [-Wredundant-decls]
15 | RYML_EXPORT id_type estimate_tree_capacity(csubstr src);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/Yankes/prog/openxcom/src/Ufopaedia/../Mod/../Engine/../../libs/rapidyaml/c4/yml/yml.hpp:9:
/home/Yankes/prog/openxcom/libs/rapidyaml/c4/yml/parse_engine.hpp:767:21: note: previous declaration of ‘c4::yml::id_type c4::yml::estimate_tree_capacity(c4::csubstr)’
767 | RYML_EXPORT id_type estimate_tree_capacity(csubstr src);
| ^~~~~~~~~~~~~~~~~~~~~~
last one look like sloppy declaration in lib itself.
[ps]
some fixes:
https://github.com/Yankes/OpenXcom/tree/rapidyam[ps2]
https://stackoverflow.com/a/55877109/1938348 probably best way to handle warnings like this in portable code.