aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2007-12-31 21:15:32 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2007-12-31 21:15:32 +0000
commit0899d2d773d1912790b003127cbe9160836beff9 (patch)
treed750ab8ff2162ec973e35e5ec1e3fd674c14606b
parent12ef007beb2962cbcf268579f77c125a7d73e81a (diff)
downloadpaludis-0899d2d773d1912790b003127cbe9160836beff9.tar.gz
paludis-0899d2d773d1912790b003127cbe9160836beff9.tar.xz
Add warn_unused_result.
-rw-r--r--paludis/util/pipe.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/util/pipe.hh b/paludis/util/pipe.hh
index aff8cac..8f24995 100644
--- a/paludis/util/pipe.hh
+++ b/paludis/util/pipe.hh
@@ -59,12 +59,12 @@ namespace paludis
///\name File descriptors
///\{
- int read_fd() const
+ int read_fd() const PALUDIS_ATTRIBUTE((warn_unused_result))
{
return _fds[0];
}
- int write_fd() const
+ int write_fd() const PALUDIS_ATTRIBUTE((warn_unused_result))
{
return _fds[1];
}