TW-Light is an open source clone/sequel to the epic cross-genre game Star Control II. Main goal is stable melee engine for implementing adventure and/or massive multiplayer melee game.
c++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I/usr/local/include -I.. -DTWLIGHT_DATADIR=\""/usr/local/share/tw-light"\" -DTWLIGHT_DOCDIR=\""/usr/local/share/doc/tw-light"\" -DTWLIGHT_LIBDIR=\""/usr/local/lib"\" -DTWLIGHT_LOCALEDIR=\""/usr/local/share/locale"\" -DTWLIGHT_PREFIX=\""/usr/local"\" -O2 -pipe -g -std=c++0x -MT shputwde.o -MD -MP -MF .deps/shputwde.Tpo -c -o shputwde.o shputwde.cpp
In file included from shputwde.cpp:2:
In file included from ./../ship.h:24:
../melee/mgame.h:169:82: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
virtual Control *create_control (int channel, const char *type, char *config = "Config0", char *file = "scp.ini") ;
^
../melee/mgame.h:169:106: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
virtual Control *create_control (int channel, const char *type, char *config = "Config0", char *file = "scp.ini") ;
^
shputwde.cpp:171:18: error: type 'double' cannot be narrowed to 'unsigned char' in initializer list [-Wc++11-narrowing]
Color c = {255,200*a,200*a};
^~~~~
shputwde.cpp:171:18: note: insert an explicit cast to silence this issue
Color c = {255,200*a,200*a};
^~~~~
static_cast<unsigned char>( )
shputwde.cpp:171:24: error: type 'double' cannot be narrowed to 'unsigned char' in initializer list [-Wc++11-narrowing]
Color c = {255,200*a,200*a};
^~~~~
shputwde.cpp:171:24: note: insert an explicit cast to silence this issue
Color c = {255,200*a,200*a};
^~~~~
static_cast<unsigned char>( )
2 warnings and 2 errors generated.
With clang-6.0.0 on OpenBSD: