]> granicus.if.org Git - libevent/commit
Make the headers compile happily with pedantic C compilers.
authorNick Mathewson <nickm@torproject.org>
Thu, 28 May 2009 15:58:28 +0000 (15:58 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 28 May 2009 15:58:28 +0000 (15:58 +0000)
commiteb97bb76e1a99eed4850f78421392f4765c63a73
treea659a772cc7e2a23047133a9012ee1bee13515f2
parent0b4ab122514f391a24711af0f92b04b8dd0c6055
Make the headers compile happily with pedantic C compilers.

Original message from SF patch 2797966:

    While commas at the end of enumerator lists are valid in c99, they
    are not valid +in c89 nor in c++. When using gcc/g++ with the
    -pedantic flag, users will +receive a warning (gcc) or an
    error(g++) when including the event2/event.h and
    +event2/bufferevent.h. The errors look something like

    event2/event.h:159: error: comma at end of enumerator list

Patch from Akita Noek on Sourceforge.

svn:r1321
include/event2/bufferevent.h
include/event2/event.h