<sys/cdefs.h>: Add a __heedresult macro to warn of discarded return values.
authorSascha Wildner <saw@online.de>
Tue, 18 Feb 2014 22:24:46 +0000 (23:24 +0100)
committerSascha Wildner <saw@online.de>
Tue, 18 Feb 2014 22:40:51 +0000 (23:40 +0100)
commit960a52dd35f62362336f943f935675615da498f4
treea1a7638f2b8849d27a645e2d158e8beb8ad6e9a3
parent70ccf487248e2f9cff8fd8675cf1bbbe49005d7c
<sys/cdefs.h>: Add a __heedresult macro to warn of discarded return values.

It's an alias for __attribute__((__warn_unused_result__)) and can be used
to mark functions whose return value must never be ignored by the calling
code.
sys/sys/cdefs.h