Skip to content

Commit

Permalink
msg/simple: fix warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
liewegas committed Feb 2, 2016
1 parent 4684490 commit 1b86827
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/msg/simple/Pipe.cc
Expand Up @@ -1718,7 +1718,8 @@ void Pipe::writer()
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;
Expand Down

0 comments on commit 1b86827

Please sign in to comment.