Closed mnm-sys closed 2 years ago
In file included from chess.c:31:
./chess.h:188:11: warning: padding struct 'struct board' with 1 byte to align 'halfmove' [-Wpadded] uint16_t halfmove; // number of half moves ^
uint16_t halfmove; // number of half moves
./chess.h:180:8: warning: padding size of 'struct board' with 2 bytes to alignment boundary [-Wpadded] struct board ^
struct board
./chess.h:154:8: warning: padding size of 'struct move' with 3 bytes to alignment boundary [-Wpadded] struct move { ^
struct move {
Fixed by not enabling -Wpadded compiler flag in Makefile.am
https://github.com/mnm-sys/tezdhar/commit/e9ba4b81870aed41e131336c48424d8e29667f2e
In file included from chess.c:31:
./chess.h:188:11: warning: padding struct 'struct board' with 1 byte to align 'halfmove' [-Wpadded]
uint16_t halfmove; // number of half moves
^./chess.h:180:8: warning: padding size of 'struct board' with 2 bytes to alignment boundary [-Wpadded]
struct board
^./chess.h:154:8: warning: padding size of 'struct move' with 3 bytes to alignment boundary [-Wpadded]
struct move {
^