[PATCH] D102326: [SystemZ][z/OS] Fix warning caused by umask returning a signed integer type
Abhina Sree via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 12 09:26:44 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGcbed6e5b2ff0: [SystemZ][z/OS] Fix warning caused by umask returning a signed integer type (authored by abhina.sreeskantharajan).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102326/new/
https://reviews.llvm.org/D102326
Files:
llvm/unittests/Support/Path.cpp
Index: llvm/unittests/Support/Path.cpp
===================================================================
--- llvm/unittests/Support/Path.cpp
+++ llvm/unittests/Support/Path.cpp
@@ -1933,7 +1933,8 @@
unsigned CurrentMask = fs::getUmask();
EXPECT_EQ(CurrentMask, 0022U)
<< "getUmask() didn't return previously set umask()";
- EXPECT_EQ(::umask(OldMask), 0022U) << "getUmask() may have changed umask()";
+ EXPECT_EQ(::umask(OldMask), mode_t(0022U))
+ << "getUmask() may have changed umask()";
#endif
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102326.344847.patch
Type: text/x-patch
Size: 525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210512/bd8e2cc9/attachment.bin>
More information about the llvm-commits
mailing list