mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-03-10 21:46:39 +00:00
fix write() unused-result warning
src/client/linux/microdump_writer/microdump_writer_unittest.cc:98:47: error: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Werror=unused-result] write(STDOUT_FILENO, identifiable_string, 0); Change-Id: I3f2305fbec0dbd1464de9aeff051e7cba2ee69a2 Reviewed-on: https://chromium-review.googlesource.com/438545 Reviewed-by: Ivan Penkov <ivanpe@chromium.org>
This commit is contained in:
@@ -95,7 +95,7 @@ void CrashAndGetMicrodump(const MappingList& mappings,
|
||||
// has been sanitized.
|
||||
strcpy(identifiable_string, kIdentifiableString);
|
||||
// Force the strcpy to not be optimized away.
|
||||
write(STDOUT_FILENO, identifiable_string, 0);
|
||||
IGNORE_RET(write(STDOUT_FILENO, identifiable_string, 0));
|
||||
|
||||
const pid_t child = fork();
|
||||
if (child == 0) {
|
||||
|
||||
Reference in New Issue
Block a user