From 7aa5ac7f0e76c5b87e4ca837b75b3edd522a3372 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 1 Dec 2012 23:30:27 -0600 Subject: Fix a number of build warnings that could lead to unstable operation This breaks the ABI --- src/kernel/qeventloop_unix_glib.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/kernel/qeventloop_unix_glib.cpp') diff --git a/src/kernel/qeventloop_unix_glib.cpp b/src/kernel/qeventloop_unix_glib.cpp index 6852f6b..e607447 100644 --- a/src/kernel/qeventloop_unix_glib.cpp +++ b/src/kernel/qeventloop_unix_glib.cpp @@ -505,7 +505,9 @@ void QEventLoop::wakeUp() size_t nbytes = 0; char c = 0; if ( ::ioctl( d->thread_pipe[0], FIONREAD, (char*)&nbytes ) >= 0 && nbytes == 0 ) { - ::write( d->thread_pipe[1], &c, 1 ); + if (::write( d->thread_pipe[1], &c, 1 ) < 0) { + // Failed! + } } } -- cgit v1.2.3