On Fri, Feb 03, 2012 at 12:21:53AM +0400, Alexey Borzenkov <[email protected]> 
wrote:
> clang). But then, in ev.h, EV_API_DECL is always defined as either
> static or extern, and in those cases:

Right, but the identifier shouldn't be visible in the first place, unless
required (because it is static), and solutions that accomodate clang and
avoid the extra visibility are much noisier and harder to understand.

EV 4.10 was, btw., not using an official libev release, it's mainly used
as testbed before the real libev release (which will porbbaly be 4.11).

> Gives a correct error on gcc, but compiles fine on clang. It seems
> like declarations inside functions mess with storage classes somehow.

Yes, the function is absolutely required in my testcase as well.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\

_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to