dereferencing type-punned pointer will break strict-aliasing rules

Eero Saynatkari esaynatkari at
Mon Oct 20 17:41:53 CEST 2008


> ev.c: In Funktion ?main?:
> ev.c:45: Warnung: Dereferenzierung eines Type-Pun-Zeigers verletzt 
> strict-aliasing-Regeln
> line 45 is
>      ev_timer_init (&timeout_watcher, timeout_cb, 5.5, 0.);

You can use a pointer variable rather than taking the
struct's address in the call, if this is an issue.

More information about the libev mailing list