[PATCH v2] selftests/mqueue: fix 5 warnings about signed/unsigned mismatches

2024-05-27 Thread John Hubbard
When building with clang, via: make LLVM=1 -C tools/testing/selftest ...clang warns about several cases of using a signed integer for the priority argument to mq_receive(3), which expects an unsigned int. Fix this by declaring the type as unsigned int in all cases. Reviewed-by: Muhammad Usa

Re: [PATCH v2] selftests/mqueue: fix 5 warnings about signed/unsigned mismatches

2024-05-10 Thread Muhammad Usama Anjum
On 5/9/24 1:00 AM, John Hubbard wrote: > When building with clang, via: > > make LLVM=1 -C tools/testing/selftest > > ...clang warns about several cases of using a signed integer for the > priority argument to mq_receive(3), which expects an unsigned int. > > Fix this by declaring the type a

Re: [PATCH v2] selftests/mqueue: fix 5 warnings about signed/unsigned mismatches

2024-05-09 Thread Ryan Roberts
On 08/05/2024 21:00, John Hubbard wrote: > When building with clang, via: > > make LLVM=1 -C tools/testing/selftest > > ...clang warns about several cases of using a signed integer for the > priority argument to mq_receive(3), which expects an unsigned int. > > Fix this by declaring the type

[PATCH v2] selftests/mqueue: fix 5 warnings about signed/unsigned mismatches

2024-05-08 Thread John Hubbard
When building with clang, via: make LLVM=1 -C tools/testing/selftest ...clang warns about several cases of using a signed integer for the priority argument to mq_receive(3), which expects an unsigned int. Fix this by declaring the type as unsigned int in all cases. Also, both input and outp