diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-05-01 10:56:34 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-05-01 10:56:34 +0200 |
commit | baa6e59efb32f7e35d2f9d69dfd44bdc3190143e (patch) | |
tree | 8dfd9c58c4bb848645da362b71d8e5faf466a16a /src/gui/curses | |
parent | 1ad6ab1fe07729da9a228f5c3f655f1724440ccc (diff) | |
download | weechat-baa6e59efb32f7e35d2f9d69dfd44bdc3190143e.zip |
core: fix compiler warning on function wattr_get (on pointers to attrs and pair)
Diffstat (limited to 'src/gui/curses')
-rw-r--r-- | src/gui/curses/gui-curses-chat.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c index f1f28919f..819c3a985 100644 --- a/src/gui/curses/gui-curses-chat.c +++ b/src/gui/curses/gui-curses-chat.c @@ -317,7 +317,9 @@ gui_chat_display_word (struct t_gui_window *window, int pos_saved_char, chars_to_display, num_displayed; int length_align; attr_t attrs; + attr_t *ptr_attrs; short pair; + short *ptr_pair; if (!data || ((!simulate) && (window->win_chat_cursor_y >= window->win_chat_height))) @@ -360,7 +362,10 @@ gui_chat_display_word (struct t_gui_window *window, { if (!simulate) { - wattr_get (GUI_WINDOW_OBJECTS(window)->win_chat, &attrs, &pair, NULL); + ptr_attrs = &attrs; + ptr_pair = &pair; + wattr_get (GUI_WINDOW_OBJECTS(window)->win_chat, + ptr_attrs, ptr_pair, NULL); gui_window_set_weechat_color (GUI_WINDOW_OBJECTS(window)->win_chat, GUI_COLOR_CHAT_PREFIX_SUFFIX); gui_chat_display_word_raw (window, |