[vte] build: Silence a compiler warning
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] build: Silence a compiler warning
- Date: Mon, 20 Mar 2017 20:59:03 +0000 (UTC)
commit 392e68ab37dddaccd9d5c2e215129536dd531804
Author: Christian Persch <chpe src gnome org>
Date: Mon Mar 20 21:56:32 2017 +0100
build: Silence a compiler warning
-Wmaybe-uninitialized erroneously complains about start_time.
src/vtespawn.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/vtespawn.cc b/src/vtespawn.cc
index 35f7678..df6e23b 100644
--- a/src/vtespawn.cc
+++ b/src/vtespawn.cc
@@ -633,7 +633,7 @@ read_ints (int fd,
gsize bytes = 0;
GPollFD pollfds[2];
guint n_pollfds;
- gint64 start_time;
+ gint64 start_time = 0;
if (timeout >= 0 || cancellable_pollfd != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]