Make hppa-hpux-nat.c:hppa_hpux_save_state_offset static.
authorPedro Alves <palves@redhat.com>
Wed, 13 Mar 2013 18:50:16 +0000 (18:50 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 13 Mar 2013 18:50:16 +0000 (18:50 +0000)
Dave reports:

> There is one small (...) issue that needs fixing:
>
> gcc -g -O2   -I. -I../../src/gdb -I../../src/gdb/common -I../../src/gdb/config -DLOCALEDIR="\"/opt/gnu64/share/locale\"" -DHAVE_CONFIG_H -I../../src/gdb/../include/opcode -I../../src/gdb/../opcodes/.. -I../../src/gdb/../readline/.. -I../bfd -I../../src/gdb/../bfd -I../../src/gdb/../include -I../libdecnumber -I../../src/gdb/../libdecnumber  -I../../src/gdb/gnulib/import -Ibuild-gnulib/import   -DTUI=1  -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement -Wempty-body -Werror -c -o hppa-hpux-nat.o -MT hppa-hpux-nat.o -MMD -MP -MF .deps/hppa-hpux-nat.Tpo ../../src/gdb/hppa-hpux-nat.c
> ../../src/gdb/hppa-hpux-nat.c:45:1: error: no previous prototype for 'hppa_hpux_save_state_offset' [-Werror=missing-prototypes]
> cc1: all warnings being treated as errors
>
> Believe the function should be static.

gdb/
2013-03-13  Pedro Alves  <palves@redhat.com>

* hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.

gdb/ChangeLog
gdb/hppa-hpux-nat.c

index 58a809543f1eb59f21ddb13fb841271fa1039b8c..0613183986ece63dd551db57a7f53f901a431527 100644 (file)
@@ -1,3 +1,7 @@
+2013-03-13  Pedro Alves  <palves@redhat.com>
+
+       * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
+
 2013-03-13  Pedro Alves  <palves@redhat.com>
 
        * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
index ba2569d3202bc0e264f0fc5691a27fdfe088f0b5..4fb4e462041c4a0a2336a0a50be84ecf5994756e 100644 (file)
@@ -41,7 +41,7 @@
    the register size (32-bit or 64-bit).  These are taken from
    REGCACHE.  */
 
-LONGEST
+static LONGEST
 hppa_hpux_save_state_offset (struct regcache *regcache, int regnum)
 {
   LONGEST offset;