mirror of
https://github.com/alrayyes/st.git
synced 2024-11-26 12:56:22 +00:00
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.
This commit is contained in:
parent
f36dd277a2
commit
742a41d655
1 changed files with 2 additions and 1 deletions
3
st.c
3
st.c
|
@ -1276,7 +1276,8 @@ stty(void)
|
||||||
siz-= n + 1;
|
siz-= n + 1;
|
||||||
}
|
}
|
||||||
*q = '\0';
|
*q = '\0';
|
||||||
system(cmd);
|
if (system(cmd) != 0)
|
||||||
|
perror("Couldn't call stty");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue