ev.h:560: warning: nested extern declaration of 'ev_default_loop_ptr'
Marc Lehmann
schmorp at schmorp.de
Thu Apr 4 21:50:28 CEST 2013
On Thu, Apr 04, 2013 at 09:35:29PM +0200, Jann Horn <jann+libev at thejh.net> wrote:
> You can't really compile libev stuff with compiler warnings activated. You'll have to
> avoid using libev macros or turn the warnings off.
Of course you can, the problem isn't warnings, the problems is the use of
-Werror.
-Werror changes the language that is accepted by gcc, specifically, gcc
will no longer attempt to accept all correct programs, but will reject
many of them.
Since every compiler version has different warnings, and even existing
warnings change behaviour over time, making libev compile with -Werror
would turn into a pointless version-hunting experience.
In many cases, warnings can't even be suppressed because gcc errornously
generates them and there is no easy way to suppress them (libev tries to
suppress them, but it doesn't work with all versions). The warning in
question (about type punning) is such a case.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the libev
mailing list