cc -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations sys_ipc/struct-ipc_perm-mode.c -o sys_ipc/struct-ipc_perm-mode -D_POSIX_C_SOURCE=202405L -lm -lpthread -lrt -lcrypt -latomic sys_ipc/struct-ipc_perm-mode.c: In function ‘foo’: sys_ipc/struct-ipc_perm-mode.c:10:23: error: initialization of ‘mode_t *’ {aka ‘unsigned int *’} from incompatible pointer type ‘short unsigned int *’ [-Werror=incompatible-pointer-types] 10 | mode_t *qux = &bar->mode; | ^ cc1: all warnings being treated as errors