Donald Sharp <[email protected]> writes:

> extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur;
>
> ./x86_64-linux-gnu/sys/cdefs.h:#define __wur __attribute_warn_unused_result__

That explains it.  It seems surprising to define write that way.  I
wonder how much other code is hitting this; I would  expect it to cause
a lot of fallout.

FWIW, here's what POSIX says about how write should be defined:

http://pubs.opengroup.org/onlinepubs/009695399/functions/write.html

which matches except for the gcc declaration.

I wonder how this affects building with clang on Debian.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Quagga-dev mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-dev

Reply via email to