mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-09 04:11:27 +08:00
1b16ff0b1e
The test case dlfcn/bug-atexit3-lib.cc calls write and doesn't check the result. When building with GCC 6.2, this generates a warning in 'make check', which is treated as an error. This patch replaces the call to write with a call to write_message. Tested for powerpc64le.
32 lines
425 B
C++
32 lines
425 B
C++
#include <unistd.h>
|
|
#include <string.h>
|
|
|
|
static void
|
|
write_message (const char *message)
|
|
{
|
|
ssize_t unused __attribute__ ((unused));
|
|
unused = write (STDOUT_FILENO, message, strlen (message));
|
|
}
|
|
|
|
struct statclass
|
|
{
|
|
statclass()
|
|
{
|
|
write_message ("statclass\n");
|
|
}
|
|
~statclass()
|
|
{
|
|
write_message ("~statclass\n");
|
|
}
|
|
};
|
|
|
|
struct extclass
|
|
{
|
|
~extclass()
|
|
{
|
|
static statclass var;
|
|
}
|
|
};
|
|
|
|
extclass globvar;
|