mirror of
https://github.com/espressif/openthread.git
synced 2026-08-18 00:19:52 +00:00
[posix-host] explicitly ignore return value on write (#4480)
Build failed because write was declared with attribute warn_unused_result.
This commit is contained in:
committed by
Jonathan Hui
parent
73ff9439e6
commit
9b86de8260
+3
-1
@@ -55,6 +55,8 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "code_utils.h"
|
||||
#include "common/code_utils.hpp"
|
||||
|
||||
#include "platform-posix.h"
|
||||
|
||||
static int sSessionFd = -1;
|
||||
@@ -261,7 +263,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
else
|
||||
{
|
||||
write(STDOUT_FILENO, buffer, rval);
|
||||
IgnoreReturnValue(write(STDOUT_FILENO, buffer, rval));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user