[gnome-builder] clang: ignore cancellation warnings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] clang: ignore cancellation warnings
- Date: Thu, 14 Jun 2018 10:42:43 +0000 (UTC)
commit fc4c67c771ff860ffb0cedab4ece1d277c1781b1
Author: Christian Hergert <chergert redhat com>
Date: Thu Jun 14 03:42:03 2018 -0700
clang: ignore cancellation warnings
src/plugins/clang/gnome-builder-clang.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/clang/gnome-builder-clang.c b/src/plugins/clang/gnome-builder-clang.c
index b0cdfe591..90a9c4177 100644
--- a/src/plugins/clang/gnome-builder-clang.c
+++ b/src/plugins/clang/gnome-builder-clang.c
@@ -144,7 +144,10 @@ handle_reply_cb (JsonrpcClient *client,
g_assert (op->client == client);
if (!jsonrpc_client_reply_finish (client, result, &error))
- g_warning ("Reply failed: %s", error->message);
+ {
+ if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ g_warning ("Reply failed: %s", error->message);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]