mesa: Add a MUST_CHECK macro for __attribute__((warn_unused_result)).
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 6 Jul 2015 18:04:19 +0000 (11:04 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 6 Jul 2015 20:40:16 +0000 (13:40 -0700)
commit128de6f6d7cd0eb5386dcc622afc6e28a8512e7f
treeec9c075b7d47ad38ec59b131fe92db651fdb45e3
parent86a3557d7c95ac945eedf42ab095639b255c1bed
mesa: Add a MUST_CHECK macro for __attribute__((warn_unused_result)).

In the kernel, this is called __must_check; all our attribute macros in
Mesa appear to be uppercase, so I went with that.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matt Turner <mattst88@gmail.com>
configure.ac
src/util/macros.h