summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-05-22 20:56:54 +0200
committerSebastien Helleu <flashcode@flashtux.org>2013-05-22 20:56:54 +0200
commite7c947df3e953361f2373b22756d0cf6c6b22407 (patch)
tree1729f0373ee0e659381a7f7a732bb7f25abb5554
parent8f66e15baefff4d2e9ca3410b9e2ceb257ce80bd (diff)
downloadweechat-e7c947df3e953361f2373b22756d0cf6c6b22407.zip
core: fix compilation warnings
-rw-r--r--src/core/wee-hook.c5
-rw-r--r--src/core/wee-network.c3
-rw-r--r--src/gui/curses/gui-curses-chat.c2
3 files changed, 7 insertions, 3 deletions
diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c
index f40338d18..6390dc3d1 100644
--- a/src/core/wee-hook.c
+++ b/src/core/wee-hook.c
@@ -1716,7 +1716,7 @@ hook_process_timer_cb (void *arg_hook_process, int remaining_calls)
void
hook_process_run (struct t_hook *hook_process)
{
- int pipe_stdout[2], pipe_stderr[2], timeout, max_calls;
+ int pipe_stdout[2], pipe_stderr[2], timeout, max_calls, rc;
long interval;
pid_t pid;
@@ -1763,7 +1763,8 @@ hook_process_run (struct t_hook *hook_process)
return;
/* child process */
case 0:
- setuid (getuid ());
+ rc = setuid (getuid ());
+ (void) rc;
hook_process_child (hook_process);
/* never executed */
_exit (EXIT_SUCCESS);
diff --git a/src/core/wee-network.c b/src/core/wee-network.c
index b1dcf7731..b6583bfbc 100644
--- a/src/core/wee-network.c
+++ b/src/core/wee-network.c
@@ -1625,7 +1625,8 @@ network_connect_with_fork (struct t_hook *hook_connect)
return;
/* child process */
case 0:
- setuid (getuid ());
+ rc = setuid (getuid ());
+ (void) rc;
close (HOOK_CONNECT(hook_connect, child_read));
#ifndef HOOK_CONNECT_MAX_SOCKETS
close (HOOK_CONNECT(hook_connect, child_recv));
diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c
index 19570437e..85b4901cf 100644
--- a/src/gui/curses/gui-curses-chat.c
+++ b/src/gui/curses/gui-curses-chat.c
@@ -481,6 +481,8 @@ gui_chat_display_word (struct t_gui_window *window,
&& CONFIG_STRING(config_look_prefix_suffix)[0]
&& line->data->date > 0)
{
+ attrs = 0;
+ pair = 0;
if (!simulate)
{
ptr_attrs = &attrs;