-Wpointer-sign: record.c.
authorPedro Alves <palves@redhat.com>
Fri, 19 Apr 2013 15:37:31 +0000 (15:37 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 19 Apr 2013 15:37:31 +0000 (15:37 +0000)
../../src/gdb/record.c: In function ‘set_record_insn_history_size’:
../../src/gdb/record.c:670:5: error: pointer targets in passing argument 2 of ‘validate_history_size’ differ in signedness [-Werror=pointer-sign]
../../src/gdb/record.c:646:1: note: expected ‘int *’ but argument is of type ‘unsigned int *’
../../src/gdb/record.c: In function ‘set_record_call_history_size’:
../../src/gdb/record.c:682:5: error: pointer targets in passing argument 2 of ‘validate_history_size’ differ in signedness [-Werror=pointer-sign]
../../src/gdb/record.c:646:1: note: expected ‘int *’ but argument is of type ‘unsigned int *’

This fixes it in the obvious way.

gdb/
2013-04-19  Pedro Alves  <palves@redhat.com>

* record.c (validate_history_size): Make parameter 'setting'
unsigned.

gdb/ChangeLog
gdb/record.c

index 379c8d22ec72a565e31efbaa1f964402f95a762b..191ef31463e4c4bf34c0cd82b389a579ccdb45ed 100644 (file)
@@ -1,3 +1,8 @@
+2013-04-19  Pedro Alves  <palves@redhat.com>
+
+       * record.c (validate_history_size): Make parameter 'setting'
+       unsigned.
+
 2013-04-19  Pedro Alves  <palves@redhat.com>
 
        * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
index 0a7f0a1aa5031d08f1936a8becd97f14ddf559cc..76d9fd2d7a931fffc4ecaf7a365d9e3360dca341 100644 (file)
@@ -643,7 +643,7 @@ cmd_record_call_history (char *arg, int from_tty)
    is the real setting the command allows changing.  */
 
 static void
-validate_history_size (unsigned int *command_var, int *setting)
+validate_history_size (unsigned int *command_var, unsigned int *setting)
 {
   if (*command_var != UINT_MAX && *command_var > INT_MAX)
     {