From 2e7e8e22154ce37ad8b95d29b276be8a25f67e8f Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 17 Jul 2017 11:50:16 -0400 Subject: suppress some compiler warnings --- src/pty-unix.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pty-unix.c b/src/pty-unix.c index 6cc4996..3c86614 100644 --- a/src/pty-unix.c +++ b/src/pty-unix.c @@ -65,7 +65,8 @@ void runes_pty_spawn_subprocess(RunesTerm *t, char *envp[], char *cwd) close(pty->slave); if (cwd) { - chdir(cwd); + // XXX + if (chdir(cwd)) {} } if (envp) { @@ -133,7 +134,8 @@ void runes_pty_set_window_size( void runes_pty_write(RunesTerm *t, char *buf, size_t len) { - write(t->pty->master, buf, len); + // XXX + if (write(t->pty->master, buf, len)) {} } void runes_pty_request_close(RunesTerm *t) -- cgit v1.2.3