diff options
author | alp@alexpilon.ca <alp@alexpilon.ca> | 2015-04-21 16:27:51 +0200 |
---|---|---|
committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2015-04-27 08:57:51 +0200 |
commit | 742a41d6554ce1848f45ea89cb83d62c7e881352 (patch) | |
tree | 1cb1a006e55cebe914185751baf1d7ab77a8eb1d | |
parent | f36dd277a2e71e99624fe26365757242d56259c0 (diff) | |
download | st-patched-742a41d6554ce1848f45ea89cb83d62c7e881352.tar.bz2 st-patched-742a41d6554ce1848f45ea89cb83d62c7e881352.tar.xz st-patched-742a41d6554ce1848f45ea89cb83d62c7e881352.zip |
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.
-rw-r--r-- | st.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1276,7 +1276,8 @@ stty(void) | |||
1276 | siz-= n + 1; | 1276 | siz-= n + 1; |
1277 | } | 1277 | } |
1278 | *q = '\0'; | 1278 | *q = '\0'; |
1279 | system(cmd); | 1279 | if (system(cmd) != 0) |
1280 | perror("Couldn't call stty"); | ||
1280 | } | 1281 | } |
1281 | 1282 | ||
1282 | void | 1283 | void |