forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2017-04-18 John Baldwin <jhb@FreeBSD.org>
|
2017-04-18 John Baldwin <jhb@FreeBSD.org>
|
||||||
|
|
||||||
PR threads/20743
|
PR threads/20743
|
||||||
|
|||||||
@@ -3040,10 +3040,12 @@ aarch64_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
|
|||||||
paddress (gdbarch, tdep->lowest_pc));
|
paddress (gdbarch, tdep->lowest_pc));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if GDB_SELF_TEST
|
||||||
namespace selftests
|
namespace selftests
|
||||||
{
|
{
|
||||||
static void aarch64_process_record_test (void);
|
static void aarch64_process_record_test (void);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Suppress warning from -Wmissing-prototypes. */
|
/* Suppress warning from -Wmissing-prototypes. */
|
||||||
extern initialize_file_ftype _initialize_aarch64_tdep;
|
extern initialize_file_ftype _initialize_aarch64_tdep;
|
||||||
|
|||||||
@@ -9596,10 +9596,12 @@ arm_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
|
|||||||
(unsigned long) tdep->lowest_pc);
|
(unsigned long) tdep->lowest_pc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if GDB_SELF_TEST
|
||||||
namespace selftests
|
namespace selftests
|
||||||
{
|
{
|
||||||
static void arm_record_test (void);
|
static void arm_record_test (void);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
extern initialize_file_ftype _initialize_arm_tdep; /* -Wmissing-prototypes */
|
extern initialize_file_ftype _initialize_arm_tdep; /* -Wmissing-prototypes */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user