st

simple terminal

git clone https://9o.is/git/st.git

commit b8978c91538acfa15b63591bf6e4ee09a71c4a27
parent 4de0f29044e0e62cd89a7dd0c04989327d6a8d1a
Author: alp@alexpilon.ca <alp@alexpilon.ca>
Date:   Tue, 21 Apr 2015 16:27:51 +0200

Make build shut up about system() without return value check.

    st.c:1321:2: warning: ignoring return value of function declared with warn_unused_result attribute [-Wunused-result]
            system(cmd);
            ^~~~~~ ~~~

Debatable whether an error here should case exit(EXIT_FAILURE). Just
preserving the existing behaviour for now.

Diffstat:
Mst.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/st.c b/st.c @@ -1276,7 +1276,8 @@ stty(void) siz-= n + 1; } *q = '\0'; - system(cmd); + if (system(cmd) != 0) + perror("Couldn't call stty"); } void