mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-30 01:05:14 +02:00
Check return value from write to prevent warning.
... and since we're testing for flags with -Werror, this caused configure to mis-detect compiler flags.
This commit is contained in:
parent
cea007d691
commit
670f5a647e
@ -20,7 +20,7 @@ int main(int argc, char **argv) {
|
|||||||
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
|
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
|
||||||
f(0);
|
f(0);
|
||||||
snprintf(b, sizeof b, "%d %d %d %f %f %lld %lld\n", i,j,k,l,m,n,o);
|
snprintf(b, sizeof b, "%d %d %d %f %f %lld %lld\n", i,j,k,l,m,n,o);
|
||||||
write(1, b, 0);
|
if (write(1, b, 0) == -1) exit(0);
|
||||||
/*
|
/*
|
||||||
* Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
|
* Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does
|
||||||
* not understand comments and we don't use the "fallthrough" attribute
|
* not understand comments and we don't use the "fallthrough" attribute
|
||||||
|
Loading…
x
Reference in New Issue
Block a user