clang -O2 -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations unistd/getresgid.c -o unistd/getresgid -D_POSIX_C_SOURCE=202405L -lm -lintl unistd/getresgid.c:11:65: error: use of undeclared identifier 'getresgid'; did you mean 'getegid'? int (*foo)(gid_t *restrict, gid_t *restrict, gid_t *restrict) = getresgid; ^~~~~~~~~ getegid /usr/include/unistd.h:116:8: note: 'getegid' declared here gid_t getegid(void); ^ unistd/getresgid.c:11:7: error: incompatible pointer types initializing 'int (*)(__gid_t *restrict, __gid_t *restrict, __gid_t *restrict)' with an expression of type '__gid_t (void)' [-Werror,-Wincompatible-pointer-types] int (*foo)(gid_t *restrict, gid_t *restrict, gid_t *restrict) = getresgid; ^ ~~~~~~~~~ 2 errors generated.