[all-commits] [llvm/llvm-project] cbed6e: [SystemZ][z/OS] Fix warning caused by umask return...

Abhina Sree via All-commits all-commits at lists.llvm.org
Wed May 12 09:26:47 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cbed6e5b2ff026e4d64de8f6ee19bc902b6e0e23
      https://github.com/llvm/llvm-project/commit/cbed6e5b2ff026e4d64de8f6ee19bc902b6e0e23
  Author: Abhina Sreeskantharajan <Abhina.Sreeskantharajan at ibm.com>
  Date:   2021-05-12 (Wed, 12 May 2021)

  Changed paths:
    M llvm/unittests/Support/Path.cpp

  Log Message:
  -----------
  [SystemZ][z/OS] Fix warning caused by umask returning a signed integer type

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'
```

Reviewed By: muiez

Differential Revision: https://reviews.llvm.org/D102326




More information about the All-commits mailing list