[PATCH] Fix warning caused by unused-result in bug-atexit3-lib.cc

Florian Weimer fweimer@redhat.com
Fri Oct 28 13:04:00 GMT 2016


On 10/28/2016 03:00 PM, Gabriel F. T. Gomes wrote:
> The test case dlfcn/bug-atexit3-lib.cc calls write and doesn't check the
> result.  When building with GCC 6.2 from IBM's branch, this generates a
> warning in 'make check', which is treated as an error.  This patch adds a
> return variable to get rid of the warning and of the error.

You could use write_message from test-skeleton.c instead.  it has a 
proper unused variable guard.

Thanks,
Florian



More information about the Libc-alpha mailing list