mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 14:37:50 +00:00
rump: fix compiler warning
Fixes two warnings of this type: ! src/lib/vfs/rump/vfs_rump.cc:214:52: warning: narrowing conversion of ! ‘(s.stat::st_mode & 64)’ from ‘__mode_t’ {aka ‘unsigned int’} to ‘bool’ ! [-Wnarrowing] ! ! 214 | .executable = (s.st_mode & S_IXUSR) }; ! | ~~~~~~~~~~~^~~~~~~~~~ Fixes #4160
This commit is contained in:
parent
7b09675236
commit
0069660958
@ -211,7 +211,7 @@ class Vfs::Rump_file_system : public File_system
|
|||||||
|
|
||||||
Node_rwx const rwx { .readable = true,
|
Node_rwx const rwx { .readable = true,
|
||||||
.writeable = true,
|
.writeable = true,
|
||||||
.executable = (s.st_mode & S_IXUSR) };
|
.executable = (s.st_mode & S_IXUSR) != 0 };
|
||||||
|
|
||||||
vfs_dir = {
|
vfs_dir = {
|
||||||
.fileno = s.st_ino,
|
.fileno = s.st_ino,
|
||||||
@ -702,7 +702,7 @@ class Vfs::Rump_file_system : public File_system
|
|||||||
.type = type(sb.st_mode),
|
.type = type(sb.st_mode),
|
||||||
.rwx = { .readable = true,
|
.rwx = { .readable = true,
|
||||||
.writeable = true,
|
.writeable = true,
|
||||||
.executable = (sb.st_mode & S_IXUSR) },
|
.executable = (sb.st_mode & S_IXUSR) != 0 },
|
||||||
.inode = sb.st_ino,
|
.inode = sb.st_ino,
|
||||||
.device = sb.st_dev,
|
.device = sb.st_dev,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user