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.
---
 st.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

Attachment: pgp6YE1Rc8WPS.pgp
Description: PGP signature

Reply via email to