This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
gdb build problem (gdb/unittests/scoped_mmap-selftests.c)
- From: Steve Ellcey <sellcey at cavium dot com>
- To: gdb-patches <gdb-patches at sourceware dot org>, simon dot marchi at ericsson dot com
- Date: Wed, 08 Aug 2018 08:42:37 -0700
- Subject: gdb build problem (gdb/unittests/scoped_mmap-selftests.c)
- Reply-to: sellcey at cavium dot com
Is anyone else still having a problem building gdb? I saw the
mail about remote.c but I currently get this failure when
building gdb with gcc 5.4.0 on an aarch64 linux box.
/home/sellcey/tot/src/binutils-gdb/gdb/unittests/scoped_mmap-selftests.c: In function ‘void selftests::mmap_file::test_normal()’:
/home/sellcey/tot/src/binutils-gdb/gdb/unittests/scoped_mmap-selftests.c:94:26: error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Werror=unused-result]
write (fd, "Hello!", 7);
It looks like this file was changed yesterday.
% git log scoped_mmap-selftests.c | more
commit 5c831bb1eb6b22cd1705b98188b7d1b0633e7c54
Author: Simon Marchi <simon.marchi@ericsson.com>
Date: Tue Aug 7 18:10:29 2018 -0400
Introduce mmap_file function
----
Steve Ellcey
sellcey@cavium.com