diff options
author | Hans Wennborg <hans@hanshq.net> | 2017-07-19 15:03:38 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2017-07-19 15:03:38 +0000 |
commit | db3d5211c6552d2863a4936ac79b0495543f0f92 (patch) | |
tree | 6bce67bc8bb70056f17dda58b73f5115f0d3e541 /examples | |
parent | d5c3125bd4814470a864b7d3cc5d621df21d270f (diff) |
Defeat a GCC -Wunused-result warning
It was warning like:
../llvm-project/llvm/lib/Support/ErrorHandling.cpp:172:51: warning:
ignoring return value of ‘ssize_t write(int, const void*, size_t)’,
declared with attribute warn_unused_result [-Wunused-result]
(void)::write(2, OOMMessage, strlen(OOMMessage));
Work around the warning by storing the return value in a variable and
casting that to void instead. We already did this for the other write()
call in this file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308483 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions