Project

General

Profile

Actions

Bug #12730

closed

common/Subprocess: build warnings

Added by Sage Weil over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

In file included from crush/CrushTester.cc:11:0:
./common/SubProcess.h: In member function 'virtual void SubProcess::exec()':
./common/SubProcess.h:312:60: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
   write(STDERR_FILENO, err.str().c_str(), err.str().size());
                                                            ^
./common/SubProcess.h: In member function 'virtual void SubProcessTimed::exec()':
./common/SubProcess.h:431:64: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
       write(STDERR_FILENO, err.str().c_str(), err.str().size());
                                                                ^
./common/SubProcess.h:449:64: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
       write(STDERR_FILENO, err.str().c_str(), err.str().size());
                                                                ^
./common/SubProcess.h:462:60: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
   write(STDERR_FILENO, err.str().c_str(), err.str().size());
                                                            ^

Actions #1

Updated by Kefu Chai over 8 years ago

  • Assignee set to Kefu Chai
Actions #2

Updated by Kefu Chai over 8 years ago

  • Status changed from New to Fix Under Review
Actions #3

Updated by Kefu Chai over 8 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF