summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Williams <peter@newton.cx>2017-11-27 11:57:19 -0500
committerGitHub <noreply@github.com>2017-11-27 11:57:19 -0500
commitd56a171fb76db5f6c6ac8ae2cdc61692b7a98dc6 (patch)
tree15393651ac6b0b0b00ca7afd1549205d9bb674ec
parent8f39fb286fe1883a21477aba9662ed56bb8af564 (diff)
parentacbfee07ec526bd533fcc7560fb3ae609f7a1dee (diff)
downloaddbus-c++-d56a171fb76db5f6c6ac8ae2cdc61692b7a98dc6.tar.gz
Merge pull request #1 from juanrubio/master
src/pipe.cpp: fixed compile error with gcc 7.2 in Ubuntu 17.10
-rw-r--r--src/pipe.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pipe.cpp b/src/pipe.cpp
index 01211b3..4a91ddd 100644
--- a/src/pipe.cpp
+++ b/src/pipe.cpp
@@ -83,5 +83,6 @@ ssize_t Pipe::read(void *buffer, unsigned int &nbytes)
void Pipe::signal()
{
// TODO: ignoring return of read/write generates warning; maybe relevant for eventloop work...
- ::write(_fd_write, '\0', 1);
+ char nullc[1] = {'\0'};
+ ::write(_fd_write, nullc, 1);
}