mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
-Wpointer-sign: record.c.
../../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.
This commit is contained in:
parent
a398505b40
commit
9c37696b24
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user