forked from lix-project/lix
Shut up some warnings
This commit is contained in:
parent
82e2a070e0
commit
816d3e5724
|
@ -32,7 +32,7 @@ static void sigsegvHandler(int signo, siginfo_t * info, void * ctx)
|
||||||
if (diff < 0) diff = -diff;
|
if (diff < 0) diff = -diff;
|
||||||
if (diff < 4096) {
|
if (diff < 4096) {
|
||||||
char msg[] = "error: stack overflow (possible infinite recursion)\n";
|
char msg[] = "error: stack overflow (possible infinite recursion)\n";
|
||||||
(void) write(2, msg, strlen(msg));
|
[[gnu::unused]] int res = write(2, msg, strlen(msg));
|
||||||
_exit(1); // maybe abort instead?
|
_exit(1); // maybe abort instead?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,7 +124,7 @@ LocalStore::LocalStore(const Params & params)
|
||||||
#endif
|
#endif
|
||||||
if (res == -1) {
|
if (res == -1) {
|
||||||
writeFull(fd.get(), string(settings.reservedSize, 'X'));
|
writeFull(fd.get(), string(settings.reservedSize, 'X'));
|
||||||
ftruncate(fd.get(), settings.reservedSize);
|
[[gnu::unused]] auto res2 = ftruncate(fd.get(), settings.reservedSize);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (SysError & e) { /* don't care about errors */
|
} catch (SysError & e) { /* don't care about errors */
|
||||||
|
|
Loading…
Reference in a new issue