summaryrefslogtreecommitdiffstats
path: root/include/pool.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/pool.h')
-rw-r--r--include/pool.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/pool.h b/include/pool.h
index 89ef9672..11730a94 100644
--- a/include/pool.h
+++ b/include/pool.h
@@ -3,6 +3,7 @@
#include <ccan/list/list.h>
#include <stddef.h>
+#include <compiler.h>
struct pool {
void *buf;
@@ -14,8 +15,8 @@ struct pool {
enum pool_priority {POOL_NORMAL, POOL_HIGH};
-void* pool_get(struct pool *pool, enum pool_priority priority);
+void* pool_get(struct pool *pool, enum pool_priority priority) __warn_unused_result;
void pool_free_object(struct pool *pool, void *obj);
-int pool_init(struct pool *pool, size_t obj_size, int count, int reserved);
+int pool_init(struct pool *pool, size_t obj_size, int count, int reserved) __warn_unused_result;
#endif /* __POOL_H */
OpenPOWER on IntegriCloud