Skip to content

rgw/posix: std::ignore return value of write()#61107

Merged
cbodley merged 1 commit intoceph:mainfrom
cbodley:wip-69241
Dec 19, 2024
Merged

rgw/posix: std::ignore return value of write()#61107
cbodley merged 1 commit intoceph:mainfrom
cbodley:wip-69241

Conversation

@cbodley
Copy link
Contributor

@cbodley cbodley commented Dec 16, 2024

/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

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

/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>
@cbodley cbodley requested a review from a team as a code owner December 16, 2024 22:12
@cbodley cbodley requested a review from dang December 16, 2024 22:12
@github-actions github-actions bot added the rgw label Dec 16, 2024
@cbodley cbodley merged commit 8c4f592 into ceph:main Dec 19, 2024
@cbodley cbodley deleted the wip-69241 branch December 19, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants