scummvm/scummvm — comment on commit 1b98cd5686409645bb99473954dd73bfdb9c5182
File: engines/tsage/staticres.cpp line 214
By fingolfin:

This triggers the following warning:

engines/tsage/staticres.cpp: In function ‘void __static_initialization_and_destruction_0(int, int)’:
engines/tsage/staticres.cpp:208: warning: ‘TsAGE::Ringworld2::AUTODOC_ITEMS’ requires global construction

Relying on global constructors being called can cause portability issues... in this particular case, I guess an easy way to solve this is to put the strings directly into array AUTODOC_ITEMS, and then add
#define FOREIGN_OBJECT_EXTRACTED AUTODOC_ITEMS[10]
or so.. or use an enum for the indices.