aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
authorGuinevere Larsen <guinevere@redhat.com>2025-09-08 16:53:46 -0300
committerGuinevere Larsen <guinevere@redhat.com>2025-09-09 12:38:41 -0300
commita66526aca60c9a8ea911310e4447ad525024f241 (patch)
tree917ba78c8e448a16a0a4277b3094bc710dcc7c75 /gdb/python/python.c
parentea1bd34d53cf21f5f6632c9e9fbc48b292d2f826 (diff)
downloadbinutils-a66526aca60c9a8ea911310e4447ad525024f241.tar.gz
binutils-a66526aca60c9a8ea911310e4447ad525024f241.tar.bz2
binutils-a66526aca60c9a8ea911310e4447ad525024f241.zip
gdb: fix build with newest clang
The upstream build of GDB can fail on fedora rawhide, since the self check in regcache.c uses an unitialized variable to be compared, which now generates the following warning: binutils-gdb/gdb/regcache.c:1847:42: error: variable 'buf' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer] 1847 | SELF_CHECK (regcache->raw_compare (0, &buf, register_size (inf.arch (), 0))); This commit fixes that by initializing the variable to 0. Since the comment above that line would be changed, it was also reformatted so that it doesn't go beyond 80 columns. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/python/python.c')
0 files changed, 0 insertions, 0 deletions