mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-10 22:44:30 +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
|
# use the host c++ for linking to find shared libraries in DT_RPATH library paths
|
||||||
LD_CMD = c++
|
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)
|
void truncate(file_size_t size)
|
||||||
{
|
{
|
||||||
ftruncate(_fd, size);
|
if (ftruncate(_fd, size)) /* nothing */;
|
||||||
|
|
||||||
mark_as_updated();
|
mark_as_updated();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user