Main branch, meson based build with O3 optimization:
In file included from ../../src/server/savegame/savegame3.c:75:
../../src/server/savegame/savegame3.c: In function ‘sg_load_player_main’:
../../src/utility/bitvector.h:79:35: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
79 | (bv).vec[_BV_BYTE_INDEX(bit)] |= _BV_BITMASK(bit); \
| ^
../../src/server/savegame/savegame3.c:4104:5: note: in expansion of macro ‘BV_SET’
4104 | BV_SET(plr->flags, fid);
| ^~~~~~
../../src/utility/bitvector.h:128:34: note: at offset 536870911 into destination object ‘vec’ of size 1
128 | typedef struct { unsigned char vec[_BV_BYTES(bits)]; } name
| ^~~
./specenum_gen.h:9049:1: note: in expansion of macro ‘BV_DEFINE’
9049 | BV_DEFINE(SPECENUM_BITVECTOR, (SPECENUM_MAX_VALUE + 1));
| ^~~~~~~~~
Main branch, meson based build with O3 optimization:
There's identical error from savegame2.c compile.