]> git.proxmox.com Git - mirror_lxc.git/commitdiff
af_unix: add comment about cast
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 23 Feb 2021 18:00:42 +0000 (19:00 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 23 Feb 2021 18:00:42 +0000 (19:00 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/af_unix.c

index 1777f5218b1d914efce367ed905c43da988b7d52..526e38ad022fc302bae5311f350408c63f02b1c0 100644 (file)
@@ -201,6 +201,12 @@ again:
        for (cmsg = CMSG_FIRSTHDR(&msg); cmsg; cmsg = CMSG_NXTHDR(&msg, cmsg)) {
                 if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SCM_RIGHTS) {
                        __u32 idx;
+                       /*
+                        * This causes some compilers to complaing about
+                        * increased alignment requirements but I haven't found
+                        * a better way to deal with this yet. Suggestions
+                        * welcome!
+                        */
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wcast-align"
                        int *fds_raw = (int *)CMSG_DATA(cmsg);