aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>2025-06-26 14:05:24 -0300
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>2025-06-27 17:44:30 -0300
commit48e0ec7484438dda8ba5a07a466167adb229424c (patch)
tree955e2982e2307af77d79fa9e65a952376d371cb6 /gdb/python/python.c
parente6fa58449b4124e6bd2f12d5e4ae6c62cc209ac9 (diff)
downloadbinutils-48e0ec7484438dda8ba5a07a466167adb229424c.zip
binutils-48e0ec7484438dda8ba5a07a466167adb229424c.tar.gz
binutils-48e0ec7484438dda8ba5a07a466167adb229424c.tar.bz2
GDB: maint: Fix build on FreeBSD
While trying to build current trunk of GDB on FreeBSD 14.3 on aarch64, I hit this warning converted to an error: In file included from /home/bauermann/src/binutils-gdb/gdb/maint.c:37: /home/bauermann/src/binutils-gdb/gdb/maint.h:64:8: error: private field 'm_start_space' is not used [-Werror,-Wunused-private-field] 64 | long m_start_space; | ^ 1 error generated. gmake[2]: *** [Makefile:1973: maint.o] Error 1 I used the default compiler on this system: $ c++ --version FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2) Target: aarch64-unknown-freebsd14.3 Thread model: posix InstalledDir: /usr/bin The problem is that the only two places that use m_start_space are guarded by HAVE_USEFUL_SBRK, so also guard the member declaration with it. Build-tested on aarch64-unknown-freebsd14.3. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/python/python.c')
0 files changed, 0 insertions, 0 deletions