From 0d4c07afb1e5e37e8e296858f8b14a3b4adf950b Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 21 Apr 2017 16:14:37 +0200 Subject: release branch: Fix: --enable-werror MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if GDB_SELF_TEST. * arm-tdep.c (selftests::arm_record_test): Likewise. --- gdb/arm-tdep.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/arm-tdep.c') diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index c8fabfb..9ac667f 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -9596,10 +9596,12 @@ arm_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file) (unsigned long) tdep->lowest_pc); } +#if GDB_SELF_TEST namespace selftests { static void arm_record_test (void); } +#endif extern initialize_file_ftype _initialize_arm_tdep; /* -Wmissing-prototypes */ -- cgit v1.1