[PATCH]: libev-3.8; ev++.h bug and warning fixes.
Marc Lehmann
schmorp at schmorp.de
Fri Aug 28 18:02:32 CEST 2009
On Fri, Aug 28, 2009 at 06:03:37PM +0400, Konstantin Lepa <konstantin.lepa at gmail.com> wrote:
> Ok. I can't build own C++ project with libev on FreeBSD 7.2 (gcc 4.2.1),
> because enum contains last comma.
> It so is critical to leave the comma?
It doesn't cause a problem unless you use switches not recommended for
your compiler.
> I don't understand... The header ev++.h generates warnings and errors
> (standard gcc in FreeBSD 7.2). Is it my problem? :-)
... "standard gcc" will not generate errors (or warnings) on that platform
unless it is forced into a very non-standard mode.
> Do you support this OS?
Yes, many people use it on that OS, with that compiler. The OS is not the
problem, nor is the compiler.
> Example code:
Indeed, your code is buggy:
> void TimerCallback() {
The (documented) correct prototype is:
> void TimerCallback(ev::timer &w, int revents) {
After fixing your code, it compiles fine on my system, and will do so on
freebsd as well.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / pcg at goof.com
-=====/_/_//_/\_,_/ /_/\_\
More information about the libev
mailing list