Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Jan 19, 2020
1 parent f410795 commit 35b05d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions libr/io/p/io_gdb.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* radare - LGPL - Copyright 2010-2018 pancake */
/* radare - LGPL - Copyright 2010-2020 pancake */

#include <r_io.h>
#include <r_lib.h>
Expand All @@ -8,6 +8,7 @@
#define IRAPI static inline
#include <libgdbr.h>
#include <gdbclient/commands.h>
#include <gdbclient/responses.h>

typedef struct {
libgdbr_t desc;
Expand Down Expand Up @@ -298,7 +299,7 @@ static char *__system(RIO *io, RIODesc *fd, const char *cmd) {
handle_stop_reason (desc);
if (desc->stop_reason.is_valid == false) {
eprintf("Thread (%d) stopped for an invalid reason: %d\n",
desc->stop_reason.thread, desc->stop_reason.reason);
desc->stop_reason.thread.tid, desc->stop_reason.reason);
}
}
gdbr_invalidate_reg_cache ();
Expand All @@ -321,7 +322,7 @@ static char *__system(RIO *io, RIODesc *fd, const char *cmd) {
handle_stop_reason (desc);
if (desc->stop_reason.is_valid == false) {
eprintf("Thread (%d) stopped for an invalid reason: %d\n",
desc->stop_reason.thread, desc->stop_reason.reason);
desc->stop_reason.thread.tid, desc->stop_reason.reason);
}
}
gdbr_invalidate_reg_cache ();
Expand Down
2 changes: 1 addition & 1 deletion shlr/mpc/mpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ enum {
static int mpc_parse_run(mpc_input_t *i, mpc_parser_t *p, mpc_result_t *r, mpc_err_t **e) {

int j = 0, k = 0;
mpc_result_t results_stk[MPC_PARSE_STACK_MIN] = { 0 };
mpc_result_t results_stk[MPC_PARSE_STACK_MIN] = {{ 0 }};
mpc_result_t *results;
int results_slots = MPC_PARSE_STACK_MIN;

Expand Down

0 comments on commit 35b05d8

Please sign in to comment.