~emersion/mrsh-dev

readline.c: fix stupid GNU warnings v1 PROPOSED

Pushed:

To git.sr.ht:~emersion/mrsh
   ac983c4b7ce0..c390c40573dd  master -> master

Thanks!
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/mrsh-dev/%3C20190924162806.201200-1-sir%40cmpwn.com%3E/mbox | git am -3
Learn more about email & git

[PATCH] readline.c: fix stupid GNU warnings Export this patch

---
 frontend/readline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frontend/readline.c b/frontend/readline.c
index 236bfec..34d75bd 100644
--- a/frontend/readline.c
+++ b/frontend/readline.c
@@ -23,7 +23,7 @@ static void sigint_handler(int n) {
 	 * signal safe, but under these circumstances it's very likely that the
 	 * interrupted function will not be affected. */
 	char newline = '\n';
-	write(STDOUT_FILENO, &newline, 1);
+	(void)write(STDOUT_FILENO, &newline, 1);
 	rl_on_new_line();
 	rl_replace_line("", 0);
 	rl_redisplay();
-- 
2.23.0
Pushed:

To git.sr.ht:~emersion/mrsh
   ac983c4b7ce0..c390c40573dd  master -> master

Thanks!
View this thread in the archives