mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
linux: prevent hybrid-mode compiler warnings
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user