Changeset c474a97


Ignore:
Timestamp:
Jun 21, 2011, 4:09:54 AM (6 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Children:
ea43085
Parents:
937a00e9
git-author:
Anders Kaseorg <andersk@mit.edu> (06/21/11 04:05:56)
git-committer:
Anders Kaseorg <andersk@mit.edu> (06/21/11 04:09:54)
Message:
_dirty_everything: Avoid argument-dropping function pointer cast

Fixes “WARNING: While resolving call to function '_dirty_everything'
arguments were dropped!” when building with clang LTO.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r259e60a8 rc474a97  
    12571257}
    12581258
    1259 static void _dirty_everything(owl_window *w) {
     1259static void _dirty_everything(gpointer data, gpointer user_data) {
     1260  owl_window *w = data;
    12601261  if (!owl_window_is_realized(w))
    12611262    return;
    12621263  owl_window_dirty(w);
    1263   owl_window_children_foreach(w, (GFunc)_dirty_everything, NULL);
     1264  owl_window_children_foreach(w, _dirty_everything, NULL);
    12641265}
    12651266
     
    12671268{
    12681269  /* Ask every widget to redraw itself. */
    1269   _dirty_everything(owl_window_get_screen());
     1270  _dirty_everything(owl_window_get_screen(), NULL);
    12701271  /* Force ncurses to redisplay everything. */
    12711272  clearok(stdscr, TRUE);
Note: See TracChangeset for help on using the changeset viewer.