The following compiler warning is emitted since gcc 7:
In file included from ../../../source/lib/res/graphics/tests/test_tex.cpp:17: /path/to/0ad/source/lib/res/graphics/tests/test_tex.h: In member function ‘void TestTex::generate_encode_decode_compare(size_t, size_t, size_t, size_t, const OsPath&)’: /path/to/0ad/source/lib/res/graphics/tests/test_tex.h:49:27: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct Tex’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset(&t, 0, sizeof(t)); ^ In file included from /path/to/0ad/source/lib/res/graphics/tests/test_tex.h:25, from ../../../source/lib/res/graphics/tests/test_tex.cpp:17: ../../../source/lib/tex/tex.h:209:8: note: ‘struct Tex’ declared here struct Tex ^~~