Fix warning/error with gcc11 in PalRedhawkUnix.cpp (#82596)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 24 Feb 2023 14:57:07 +0000 (15:57 +0100)
committerGitHub <noreply@github.com>
Fri, 24 Feb 2023 14:57:07 +0000 (06:57 -0800)
commitc1bc21bfdeb5a4db997fef56598d69dc2b60117f
treeabc2541245aee3ee3cea56accecb5e6fd2b78928
parentc40c9a464e57eed1e4787294399bdf80a0c2a7a5
Fix warning/error with gcc11 in PalRedhawkUnix.cpp (#82596)

Otherwise you get:

```
error: ignoring return value of ‘ssize_t write(int, const void*, std::size_t)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result]
    681 |     write(STDERR_FILENO, message, strlen(message));
        |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

The same warning was already fixed for `alloca()` in encee.cpp as part of https://github.com/dotnet/runtime/commit/5d6d55977270b3d1549a5c2e454b191487bef5eb#diff-f1018f796e7e06f60f7f4558583ec116f8e394bc90e29177c9dbdbfd29b78ab5R670, applying the same fix here
src/coreclr/nativeaot/Runtime/unix/PalRedhawkUnix.cpp