Changeset b343c2c


Ignore:
Timestamp:
Jun 22, 2011, 3:43:38 PM (13 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
8b293ea, 26217b9, 51ff997, fc625fb
Parents:
d427f08
git-author:
Anders Kaseorg <andersk@mit.edu> (06/21/11 04:05:56)
git-committer:
Nelson Elhage <nelhage@mit.edu> (06/22/11 15:43:38)
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

    rd427f08 rb343c2c  
    12281228}
    12291229
    1230 static void _dirty_everything(owl_window *w) {
     1230static void _dirty_everything(gpointer data, gpointer user_data) {
     1231  owl_window *w = data;
    12311232  if (!owl_window_is_realized(w))
    12321233    return;
    12331234  owl_window_dirty(w);
    1234   owl_window_children_foreach(w, (GFunc)_dirty_everything, NULL);
     1235  owl_window_children_foreach(w, _dirty_everything, NULL);
    12351236}
    12361237
     
    12381239{
    12391240  /* Ask every widget to redraw itself. */
    1240   _dirty_everything(owl_window_get_screen());
     1241  _dirty_everything(owl_window_get_screen(), NULL);
    12411242  /* Force ncurses to redisplay everything. */
    12421243  clearok(stdscr, TRUE);
Note: See TracChangeset for help on using the changeset viewer.