pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f36dd27
)
Make build shut up about system() without return value check.
author
alp@alexpilon.ca
<alp@alexpilon.ca>
Tue, 21 Apr 2015 14:27:51 +0000
(16:27 +0200)
committer
Roberto E. Vargas Caballero
<k0ga@shike2.com>
Mon, 27 Apr 2015 06:57:51 +0000
(08:57 +0200)
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
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
8e51344
..
b042be2
100644
(file)
--- 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