release branch: Fix: --enable-werror
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 21 Apr 2017 14:14:37 +0000 (16:14 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 21 Apr 2017 14:14:37 +0000 (16:14 +0200)
commit0d4c07afb1e5e37e8e296858f8b14a3b4adf950b
treef44da9e528ae52cd4065ded3c16f1da86d6b7709
parent4daf993d4d4686f2707810af3725038d2f289bbb
release branch: Fix: --enable-werror

gdb-8.0-branch
./configure --enable-werror --enable-targets=all
aarch64-tdep.c:3045:13: error: ‘void selftests::aarch64_process_record_test()’ declared ‘static’ but never defined [-Werror=unused-function]
arm-tdep.c:9601:13: error: ‘void selftests::arm_record_test()’ declared ‘static’ but never defined [-Werror=unused-function]

gdb/ChangeLog
2017-04-21  Jan Kratochvil  <jan.kratochvil@redhat.com>

* aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
GDB_SELF_TEST.
* arm-tdep.c (selftests::arm_record_test): Likewise.
gdb/ChangeLog
gdb/aarch64-tdep.c
gdb/arm-tdep.c