ignore-value: handle pointer types, too
authorPádraig Brady <P@draigBrady.com>
Wed, 12 Aug 2009 08:37:56 +0000 (09:37 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 27 Aug 2009 06:30:11 +0000 (08:30 +0200)
commitc232dc71492aca02861923bf1a082632703dfb16
treef4ce0f165fd9e05a9d667cbc6aa7a43f737b357b
parent2449f6ebc91514e321ffe7420222727909f515b2
ignore-value: handle pointer types, too

* lib/ignore-value.h (__attribute__): Remove definition.
(ignore_value): Remove use of "__attribute__ ((unused))" in favor
of a more concise and more-often effective "(void) i" statement.
(ignore_ptr): New function to suppress warnings from functions that
return pointers, and to make it explicit that one function doesn't
handle all cases.
ChangeLog
lib/ignore-value.h