summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2012-05-18 00:00:21 +0000
committerroot <root>2012-05-18 00:00:21 +0000
commit4cb698292730379d4794a29bb7e68535a7f82e18 (patch)
treeb62ccf9c4c504cc4eace91b780f1f0ad0ab24429
parent47fe1e57e56447c355cec688abf269e23470e8c0 (diff)
praise clang++
-rw-r--r--ev++.h4
-rw-r--r--ev.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/ev++.h b/ev++.h
index 283f6eb..f6c0d25 100644
--- a/ev++.h
+++ b/ev++.h
@@ -552,12 +552,12 @@ namespace ev {
return ev_embeddable_backends ();
}
- inline void set_allocator (void *(*cb)(void *ptr, long size)) throw ()
+ inline void set_allocator (void *(*cb)(void *ptr, long size) throw ()) throw ()
{
ev_set_allocator (cb);
}
- inline void set_syserr_cb (void (*cb)(const char *msg)) throw ()
+ inline void set_syserr_cb (void (*cb)(const char *msg) throw ()) throw ()
{
ev_set_syserr_cb (cb);
}
diff --git a/ev.c b/ev.c
index 0e94222..d5d3292 100644
--- a/ev.c
+++ b/ev.c
@@ -1107,7 +1107,7 @@ ev_printerr (const char *msg)
static void (*syserr_cb)(const char *msg) EV_THROW;
void ecb_cold
-ev_set_syserr_cb (void (*cb)(const char *msg)) EV_THROW
+ev_set_syserr_cb (void (*cb)(const char *msg) EV_THROW) EV_THROW
{
syserr_cb = cb;
}
@@ -1135,7 +1135,7 @@ ev_syserr (const char *msg)
}
static void *
-ev_realloc_emul (void *ptr, long size)
+ev_realloc_emul (void *ptr, long size) EV_THROW
{
#if __GLIBC__
return realloc (ptr, size);
@@ -1156,7 +1156,7 @@ ev_realloc_emul (void *ptr, long size)
static void *(*alloc)(void *ptr, long size) EV_THROW = ev_realloc_emul;
void ecb_cold
-ev_set_allocator (void *(*cb)(void *ptr, long size)) EV_THROW
+ev_set_allocator (void *(*cb)(void *ptr, long size) EV_THROW) EV_THROW
{
alloc = cb;
}