File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1212#include <zephyr/posix/sys/socket.h>
1313#endif
1414
15- #pragma GCC diagnostic push
16- #pragma GCC diagnostic ignored "-Wunused-value"
1715/**
1816 * @brief existence test for `<sys/socket.h>`
1917 *
@@ -51,9 +49,9 @@ ZTEST(posix_headers, test_sys_socket_h)
5149 zassert_not_equal (-1 , offsetof(struct cmsghdr , cmsg_level ));
5250 zassert_not_equal (-1 , offsetof(struct cmsghdr , cmsg_type ));
5351
54- CMSG_DATA (& cmsg );
55- CMSG_NXTHDR (& mhdr , & cmsg );
56- CMSG_FIRSTHDR (& mhdr );
52+ ARG_UNUSED ( CMSG_DATA (& cmsg ) );
53+ __unused struct cmsghdr * next = CMSG_NXTHDR (& mhdr , & cmsg );
54+ __unused struct cmsghdr * first = CMSG_FIRSTHDR (& mhdr );
5755
5856 zassert_not_equal (-1 , offsetof(struct linger , l_onoff ));
5957 zassert_not_equal (-1 , offsetof(struct linger , l_linger ));
@@ -120,4 +118,3 @@ ZTEST(posix_headers, test_sys_socket_h)
120118 zassert_not_null (socketpair );
121119 }
122120}
123- #pragma GCC diagnostic pop
You can’t perform that action at this time.
0 commit comments