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:
parent
4daf993d4d
commit
0d4c07afb1
|
@ -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-21 Yao Qi <yao.qi@linaro.org>
|
||||
|
||||
* regcache.c (regcache_restore): Remove argument 2. Replace
|
||||
|
|
|
@ -3040,10 +3040,12 @@ aarch64_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
|
|||
paddress (gdbarch, tdep->lowest_pc));
|
||||
}
|
||||
|
||||
#if GDB_SELF_TEST
|
||||
namespace selftests
|
||||
{
|
||||
static void aarch64_process_record_test (void);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Suppress warning from -Wmissing-prototypes. */
|
||||
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);
|
||||
}
|
||||
|
||||
#if GDB_SELF_TEST
|
||||
namespace selftests
|
||||
{
|
||||
static void arm_record_test (void);
|
||||
}
|
||||
#endif
|
||||
|
||||
extern initialize_file_ftype _initialize_arm_tdep; /* -Wmissing-prototypes */
|
||||
|
||||
|
|
Loading…
Reference in New Issue