]> git.ipfire.org Git - thirdparty/glibc.git/commit
sunrpc: Suppress clang -Wgnu-variable-sized-type-not-at-end warning on struct cmessage
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 17 Oct 2025 19:12:47 +0000 (16:12 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 21 Oct 2025 12:24:10 +0000 (09:24 -0300)
commit6eb1d9a9ed64b97a1800b0f7310c2a3a92245bc5
tree639799eb6e84fb37be6c767a67375da0d261cf27
parentc6278687d95d8246a1d8d7b33c63ba9d38295cd8
sunrpc: Suppress clang -Wgnu-variable-sized-type-not-at-end warning on struct cmessage

clang issues:

svc_unix.c:318:18: error: field 'cmsg' with variable sized type 'struct cmsghdr' not at the end of a struct or class is a GNU extension [-Werror,-Wgnu-variable-sized-type-not-at-end]
  318 |   struct cmsghdr cmsg;
      |                  ^

The __msgread explicitly expects that 'struct ucred' is after the 'cmsg',
so suppress the warning.

Reviewed-by: Sam James <sam@gentoo.org>
sunrpc/svc_unix.c