summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2010-04-02 11:20:09 +0200
committerSergei Golubchik <sergii@pisem.net>2010-04-02 11:20:09 +0200
commit3b03f5d97e0f80da74cb0789f513ce0319fc9c8a (patch)
tree2655536b4631ad6a1894a274ff1da4ae9f408fb7 /extra
parentc7d173589c4e8f8332495228c6000f3fa0505e1e (diff)
downloadmariadb-git-3b03f5d97e0f80da74cb0789f513ce0319fc9c8a.tar.gz
fixes for windows builds
Diffstat (limited to 'extra')
-rw-r--r--extra/libevent/evbuffer.c3
-rw-r--r--extra/libevent/event.c3
-rw-r--r--extra/libevent/signal.c2
3 files changed, 3 insertions, 5 deletions
diff --git a/extra/libevent/evbuffer.c b/extra/libevent/evbuffer.c
index 758143c8225..6fe791380ea 100644
--- a/extra/libevent/evbuffer.c
+++ b/extra/libevent/evbuffer.c
@@ -75,8 +75,7 @@ bufferevent_add(struct event *ev, int timeout)
*/
void
-bufferevent_read_pressure_cb(struct evbuffer *buf,
- size_t old __attribute__((unused)), size_t now,
+bufferevent_read_pressure_cb(struct evbuffer *buf, size_t old, size_t now,
void *arg) {
struct bufferevent *bufev = arg;
/*
diff --git a/extra/libevent/event.c b/extra/libevent/event.c
index 2042c2de626..e96c1b6a3ab 100644
--- a/extra/libevent/event.c
+++ b/extra/libevent/event.c
@@ -394,8 +394,7 @@ event_base_get_method(struct event_base *base)
}
static void
-event_loopexit_cb(int fd __attribute__((unused)),
- short what __attribute__((unused)), void *arg)
+event_loopexit_cb(int fd, short what, void *arg)
{
struct event_base *base = arg;
base->event_gotterm = 1;
diff --git a/extra/libevent/signal.c b/extra/libevent/signal.c
index c4a1d0da167..964ae37fed2 100644
--- a/extra/libevent/signal.c
+++ b/extra/libevent/signal.c
@@ -69,7 +69,7 @@ static void evsignal_handler(int sig);
/* Callback for when the signal handler write a byte to our signaling socket */
static void
-evsignal_cb(int fd, short what __attribute((unused)), void *arg __attribute((unused)))
+evsignal_cb(int fd, short what, void *arg)
{
static char signals[100];
#ifdef WIN32