posix/fd: label write/read calls with warn_unused

This commit is contained in:
Danny Robson 2017-02-20 18:10:04 +11:00
parent d21f6c6911
commit 09de734185

View File

@ -52,11 +52,11 @@ namespace util::posix {
struct ::stat stat (void) const; struct ::stat stat (void) const;
//--------------------------------------------------------------------- //---------------------------------------------------------------------
ssize_t read ( void *buf, size_t count); [[gnu::warn_unused_result]] ssize_t read ( void *buf, size_t count);
ssize_t write (const void *buf, size_t count); [[gnu::warn_unused_result]] ssize_t write (const void *buf, size_t count);
//--------------------------------------------------------------------- //---------------------------------------------------------------------
off_t lseek (off_t offset, int whence); [[gnu::warn_unused_result]] off_t lseek (off_t offset, int whence);
/////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////
operator int (void) const; operator int (void) const;