msg/simple/Pipe.cc: In member function 'void Pipe::writer()':
msg/simple/Pipe.cc:1721:26: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
if(::write(sd, &tag, 1));
^
Signed-off-by: Sage Weil <sage@redhat.com>
pipe_lock.Unlock();
if (sd) {
// we can ignore return value, actually; we don't care if this succeeds.
- if(::write(sd, &tag, 1));
+ int r = ::write(sd, &tag, 1);
+ (void)r;
}
pipe_lock.Lock();
continue;