提交 c1fa0ee1 编写于 作者: G Gonzalo Paniagua Javier

Avoid a few warnings

上级 582a90e8
......@@ -200,13 +200,15 @@ terminal_get_dimensions (void)
static void
tty_teardown (void)
{
int unused;
MONO_ARCH_SAVE_REGS;
if (!setup_finished)
return;
if (teardown_str != NULL) {
write (STDOUT_FILENO, teardown_str, strlen (teardown_str));
unused = write (STDOUT_FILENO, teardown_str, strlen (teardown_str));
g_free (teardown_str);
teardown_str = NULL;
}
......@@ -278,11 +280,12 @@ static struct sigaction save_sigcont, save_sigint, save_sigwinch;
static void
sigcont_handler (int signo, void *the_siginfo, void *data)
{
int unused;
// Ignore error, there is not much we can do in the sigcont handler.
tcsetattr (STDIN_FILENO, TCSANOW, &mono_attr);
if (keypad_xmit_str != NULL)
write (STDOUT_FILENO, keypad_xmit_str, strlen (keypad_xmit_str));
unused = write (STDOUT_FILENO, keypad_xmit_str, strlen (keypad_xmit_str));
// Call previous handler
if (save_sigcont.sa_sigaction != NULL &&
......
......@@ -1667,11 +1667,12 @@ try_addr2line (const char* binary, gpointer ip)
/* we first get the func name and then file:lineno in a second line */
if (fgets (buf, sizeof (buf), addr2line->pipeout) && buf [0] != '?') {
char *end = strchr (buf, '\n');
char *unused;
if (end)
*end = 0;
res = g_strdup_printf ("%s(%s", binary, buf);
/* discard the filename/line info */
fgets (buf, sizeof (buf), addr2line->pipeout);
unused = fgets (buf, sizeof (buf), addr2line->pipeout);
} else {
res = g_strdup (binary);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册