diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2017-04-21 16:14:37 +0200 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2017-04-21 16:14:37 +0200 |
commit | 0d4c07afb1e5e37e8e296858f8b14a3b4adf950b (patch) | |
tree | f44da9e528ae52cd4065ded3c16f1da86d6b7709 /gdb | |
parent | 4daf993d4d4686f2707810af3725038d2f289bbb (diff) | |
download | gdb-0d4c07afb1e5e37e8e296858f8b14a3b4adf950b.zip gdb-0d4c07afb1e5e37e8e296858f8b14a3b4adf950b.tar.gz gdb-0d4c07afb1e5e37e8e296858f8b14a3b4adf950b.tar.bz2 |
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/aarch64-tdep.c | 2 | ||||
-rw-r--r-- | gdb/arm-tdep.c | 2 |
3 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cb6db1f..b657685 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c index 28c2573..6113621 100644 --- a/gdb/aarch64-tdep.c +++ b/gdb/aarch64-tdep.c @@ -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; 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 */ |