ufoaiorg / ufoai

UFO:Alien Invasion
http://ufoai.org
GNU General Public License v2.0
148 stars 52 forks source link

Fail to compil on archlinux #62

Closed PowaBanga closed 1 year ago

PowaBanga commented 3 years ago

Hello, I have this error message incompilation on Archlinux. Does anybody can help me to fix it ?

===> CXX [testall] src/client/cgame/campaign/cp_base.cpp
src/client/cgame/campaign/cp_base.cpp: In function 'void B_SelectBase(const base_t*)':
src/client/cgame/campaign/cp_base.cpp:1614:39: error: format not a string literal and no format arguments [-Werror=format-security]
 1614 |                 cgi->Cmd_ExecuteString(va("ui_push bases %d", base->idx));
      |                 ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: some warnings being treated as errors
make: *** [Makefile:183: release-linux-x86_64/testall/client/cgame/campaign/cp_base.cpp.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
geever commented 3 years ago

Hi, this warning is already fixed in the latest master on SourceForge (https://sourceforge.net/projects/ufoai/). If you want to compile the revision you have, you might need to disable the warning. (-Wno-error=format-security maybe)

mariouriarte commented 2 years ago

the project is over?

geever commented 2 years ago

The project's main repository is on SourceForge, it get updates sporadically when the current contributors have free time. Helping hands are always welcome!

mgerhardy commented 2 years ago

There is also https://codeberg.org/libregaming/ufoai

geever commented 1 year ago

cc1plus: some warnings being treated as errors

Generally, it is a bad idea to treat warnings as errors as compilers may introduce new warnings to help developers. This "error" is a good example for that. There is actually no error in the code.