libdwfl: clean up non-Linux GNU platforms code
authorSteven Chamberlain <steven@pyro.eu.org>
Tue, 1 Mar 2016 13:32:37 +0000 (13:32 +0000)
committerMark Wielaard <mjw@redhat.com>
Wed, 2 Mar 2016 15:04:50 +0000 (16:04 +0100)
commit128947e6c3ccf8b975c50bae8b3772d19ab1420f
tree257907701ccb9f6cae0d4738360b54ab2a1b1b12
parentf6d080336caaf3894ff0583c277588a3a234c4ec
libdwfl: clean up non-Linux GNU platforms code

For non-Linux GNU platforms (like kFreeBSD, Hurd), linux-pid-attach.c
had some stub functions that are not used or exported.  Since gcc-6,
having these caused compiler errors due to -Wall -Werror:

linux-pid-attach.c:479:36: error: 'pid_thread_callbacks' defined but not used [-Werror=unused-const-variable=]

linux-pid-attach.c:474:1: error: 'pid_thread_detach' defined but not used [-Werror=unused-function]
linux-pid-attach.c:461:1: error: 'pid_detach' defined but not used [-Werror=unused-function]
linux-pid-attach.c:452:1: error: 'pid_set_initial_registers' defined but not used [-Werror=unused-function]
linux-pid-attach.c:441:1: error: 'pid_memory_read' defined but not used [-Werror=unused-function]
linux-pid-attach.c:420:1: error: 'pid_getthread' defined but not used [-Werror=unused-function]
linux-pid-attach.c:410:1: error: 'pid_next_thread' defined but not used [-Werror=unused-function]

This part of the source file is guarded by #ifndef __linux__

Signed-off-by: Steven Chamberlain <steven@pyro.eu.org>
libdwfl/ChangeLog
libdwfl/linux-pid-attach.c