mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
linux: prevent hybrid-mode compiler warnings
This commit is contained in:
parent
c934ee1650
commit
140ecb1238
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user