linux: prevent hybrid-mode compiler warnings

This commit is contained in:
Christian Helmuth 2015-05-15 17:35:01 +02:00
parent c934ee1650
commit 140ecb1238
2 changed files with 4 additions and 1 deletions

View File

@ -109,3 +109,6 @@ LD_LIBGCC =
# use the host c++ for linking to find shared libraries in DT_RPATH library paths
LD_CMD = c++
# disable format-string security checks, which prevent non-literal format strings
CC_OPT += -Wno-format-security

View File

@ -129,7 +129,7 @@ class File_system::File : public Node
void truncate(file_size_t size)
{
ftruncate(_fd, size);
if (ftruncate(_fd, size)) /* nothing */;
mark_as_updated();
}