1From 167042116f523f90911f3a28c4ec065918d56cc9 Mon Sep 17 00:00:00 2001 2From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 3Date: Tue, 22 Aug 2017 00:02:52 +0200 4Subject: [PATCH] src/pipe.c: fix build error with gcc 7.x 5MIME-Version: 1.0 6Content-Type: text/plain; charset=UTF-8 7Content-Transfer-Encoding: 8bit 8 9The write function takes a char* as argument, not a char. 10 11Fixes: 12 13pipe.cpp: In member function ‘void DBus::Pipe::signal()’: 14pipe.cpp:86:29: error: invalid conversion from ‘char’ to ‘const void*’ [-fpermissive] 15 ::write(_fd_write, '\0', 1); 16 ^ 17 18Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 19--- 20 src/pipe.cpp | 2 +- 21 1 file changed, 1 insertion(+), 1 deletion(-) 22 23diff --git a/src/pipe.cpp b/src/pipe.cpp 24index 01211b3..d0572c7 100644 25--- a/src/pipe.cpp 26+++ b/src/pipe.cpp 27@@ -83,5 +83,5 @@ ssize_t Pipe::read(void *buffer, unsigned int &nbytes) 28 void Pipe::signal() 29 { 30 // TODO: ignoring return of read/write generates warning; maybe relevant for eventloop work... 31- ::write(_fd_write, '\0', 1); 32+ ::write(_fd_write, "\0", 1); 33 } 34-- 352.9.4 36 37