1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 18:53:12 +02:00

Remove some compiler warnings

This commit is contained in:
Sebastien Helleu
2009-01-07 14:27:29 +01:00
parent d3a62a9434
commit 9dd2c1b616
3 changed files with 14 additions and 12 deletions
+10 -7
View File
@@ -470,14 +470,16 @@ gui_chat_draw (struct t_gui_buffer *buffer, int erase)
void
gui_chat_draw_line (struct t_gui_buffer *buffer, struct t_gui_line *line)
{
struct t_gui_window *ptr_win;
unsigned char *message_without_color;
GtkTextIter start, end;
//struct t_gui_window *ptr_win;
//unsigned char *message_without_color;
//GtkTextIter start, end;
(void) buffer;
(void) line;
//ptr_win = gui_buffer_find_window (buffer);
//if (ptr_win)
/*
ptr_win = gui_buffer_find_window (buffer);
if (ptr_win)
{
message_without_color = gui_color_decode ((unsigned char *)(line->message));
if (message_without_color)
@@ -488,9 +490,10 @@ gui_chat_draw_line (struct t_gui_buffer *buffer, struct t_gui_line *line)
"\n", -1);
gtk_text_buffer_get_bounds (GUI_WINDOW_OBJECTS(ptr_win)->textbuffer_chat,
&start, &end);
/* TODO */
/*gtk_text_buffer_apply_tag (ptr_win->textbuffer_chat, ptr_win->texttag_chat, &start, &end);*/
// TODO
//gtk_text_buffer_apply_tag (ptr_win->textbuffer_chat, ptr_win->texttag_chat, &start, &end);
free (message_without_color);
}
}
*/
}
+2 -1
View File
@@ -812,7 +812,8 @@ gui_completion_list_add_option_value (struct t_gui_completion *completion)
0, WEECHAT_LIST_POS_BEGINNING);
if (option_found->value)
{
value_string = malloc (64);
length = 64;
value_string = malloc (length);
if (value_string)
{
snprintf (value_string, length,