]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/posix: std::ignore return value of write() 61147/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 16 Dec 2024 22:10:04 +0000 (17:10 -0500)
committerCasey Bodley <cbodley@redhat.com>
Thu, 19 Dec 2024 15:36:58 +0000 (10:36 -0500)
commit26a2b2c8b93bef6c2140dbff0ace309bf6932bab
treec08f57ca569076c079242c625f2d50c3bed3a2c5
parent6a3133b29b28ad86559979d6abbc410a5b8c631f
rgw/posix: std::ignore return value of write()

/ceph/src/rgw/driver/posix/notify.h: In member function 'void file::listing::Inotify::signal_shutdown()':
/ceph/src/rgw/driver/posix/notify.h:215:19: error: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Werror=unused-result]
  215 |       (void) write(efd, &msg, sizeof(uint64_t));
      |              ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors

Fixes: https://tracker.ceph.com/issues/69241
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit a2ebc00a56fcffc57b04fad1e5d134f75ae753eb)
src/rgw/driver/posix/notify.h