This is an archive of the discontinued LLVM Phabricator instance.

[SystemZ][z/OS] Fix warning caused by umask returning a signed integer type
ClosedPublic

Authored by abhina.sreeskantharajan on May 12 2021, 7:00 AM.

Details

Summary

On z/OS, umask() returns an int because mode_t is type int, however it is being compared to an unsigned int. This patch fixes the following warning we see when compiling Path.cpp.

comparison of integers of different signs: 'const int' and 'const unsigned int'

Diff Detail

Event Timeline

abhina.sreeskantharajan requested review of this revision.May 12 2021, 7:00 AM
abhina.sreeskantharajan created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2021, 7:00 AM
muiez accepted this revision.May 12 2021, 8:25 AM

LGTM.

This revision is now accepted and ready to land.May 12 2021, 8:25 AM