On 7/26/22 11:40 PM, Jens Axboe wrote:
On 7/26/22 10:32 AM, Ammar Faizi wrote:
On 7/26/22 11:23 PM, Jens Axboe wrote:
[5/5] add an example for a UDP server
commit: 61d472b51e761e61cbf46caea40aaf40d8ed1484
This one breaks clang-13 build, I'll send a patch.
Hmm, built fine with clang-13/14 here?
Not sure what is going on, but clang-13 on my machine is not happy:
io_uring-udp.c:134:18: error: incompatible pointer types passing \
'struct sockaddr_in6 *' to parameter of type 'const struct sockaddr *' \
[-Werror,-Wincompatible-pointer-types
io_uring-udp.c:142:18: error: incompatible pointer types passing \
'struct sockaddr_in *' to parameter of type 'const struct sockaddr *' \
[-Werror,-Wincompatible-pointer-types]
Changing the compiler to GCC builds just fine. I have fixed something like
this more than once. Strange indeed.
--
Ammar Faizi