UnoffLandz / unoff-landz

open source server for the eternal lands/other life client
9 stars 4 forks source link

build warnings : dereferencing type-punned pointer will break strict-aliasing rules #4

Closed themuntdregger closed 10 years ago

themuntdregger commented 10 years ago

Arises in function main in main.c through use of the following statements -

ev_timer_init(&timeout_watcher, timeout_cb, 0.05, 0.05); ev_io_init(&stdin_watcher, accept_client, server_sockfd, EV_READ);

same cause as issues #2 and #3

themuntdregger commented 10 years ago

Sorted by adding compiler flag -fno-strict-aliasing