aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-tdep.c
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2024-11-08 11:57:30 +0100
committerMark Wielaard <mark@klomp.org>2024-11-12 22:39:33 +0100
commit14bc3b1b8365b91a2e0c5b0ba2399778c2520ce6 (patch)
tree81f665cdff1454ce4e456c104ca23af84b9d182c /gdb/linux-tdep.c
parent06b8b0ad976aa3ad5864bbe4b196ba737f677efb (diff)
downloadbinutils-14bc3b1b8365b91a2e0c5b0ba2399778c2520ce6.zip
binutils-14bc3b1b8365b91a2e0c5b0ba2399778c2520ce6.tar.gz
binutils-14bc3b1b8365b91a2e0c5b0ba2399778c2520ce6.tar.bz2
bfd: Add WARN_CFLAGS_FOR_BUILD to doc/chew.c build, fix warnings
doc/chew.c was compiled without any warning flags set. Adding the common warnings for build showed various issues with non-static functions missing prototypes and globals with common names (ptr and idx) that shadowed local arguments or variables. * doc/local.mk (doc/chew.stamp): Add WARN_CFLAGS_FOR_BUILD. * Makefile.in: Regenerate. * doc/chew.c (idx): Rename to pos_idx. (ptr): Rename to buf_ptr. (xmalloc): Make static. (xrealloc): Likewise. (xstrdup): Likewise. (nextword): Likewise. (newentry): Likewise. (add_to_definition): Likewise. (add_intrinsic): Likewise. (compile): Likewise. (icopy_past_newline): Rename idx to pos_idx, ptr to buf_ptr. (get_stuff_in_command): Likewise. (skip_past_newline): Likewise. (perform): Likewise. (main): Likewise.
Diffstat (limited to 'gdb/linux-tdep.c')
0 files changed, 0 insertions, 0 deletions