On 7/27/22 4:59 PM, Ammar Faizi wrote:
Interestingly GCC also complains here, but it doesn't complain when compiling your code. Your code only breaks my clang-13. What is the magic behind this?
OK, I figured it out. This work: gcc -D_GNU_SOURCE test.c -o test; These 3 break: clang -D_GNU_SOURCE test.c -o test; clang test.c -o test; gcc test.c -o test; So -D_GNU_SOURCE is the culprit. It seems to be unavoidable as the warn seems to be compiler specific or something. Maybe that _GNU_SOURCE patches the definition of bind(). -- Ammar Faizi