1From e6780a1d661ab2a76c16602edfc3ca08e97612bf Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Tue, 21 Sep 2021 13:12:09 -0700 4Subject: [PATCH] Fix additional compiler warnings 5 6Fixes 7../../base/files/file_util_linux.cc:33:10: error: case value evaluates to -1859950530, which cannot be narrowed to type 'unsigned long' [-Wc++11-narrowing] case static_cast<int>(BTRFS_SUPER_MAGIC): 8 ^ 9 10Jan 2023: 11 file_util_linux.cc was removed but sys_info_posix.cc remains so patch adjusted. 12 13Upstream-Status: Pending 14Signed-off-by: Khem Raj <raj.khem@gmail.com> 15Signed-off-by: Randy MacLeod <randy.macleod@windriver.com> 16 17--- 18 base/system/sys_info_posix.cc | 4 ++-- 19 1 file changed, 2 insertions(+), 2 deletions(-) 20 21diff --git a/base/system/sys_info_posix.cc b/base/system/sys_info_posix.cc 22index dbf9947723..921d31464c 100644 23--- a/base/system/sys_info_posix.cc 24+++ b/base/system/sys_info_posix.cc 25@@ -64,8 +64,8 @@ bool IsStatsZeroIfUnlimited(const base::FilePath& path) { 26 27 switch (stats.f_type) { 28 case TMPFS_MAGIC: 29- case static_cast<int>(HUGETLBFS_MAGIC): 30- case static_cast<int>(RAMFS_MAGIC): 31+ case static_cast<unsigned int>(HUGETLBFS_MAGIC): 32+ case static_cast<unsigned int>(RAMFS_MAGIC): 33 return true; 34 } 35 return false; 36