You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2017/04/04 20:28:53 UTC

qpid-dispatch git commit: DISPATCH-613: Fix pedantic warnings with USE_MEMORY_POOL=off

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 886d3cbca -> 41efe0710


DISPATCH-613: Fix pedantic warnings with USE_MEMORY_POOL=off


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/41efe071
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/41efe071
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/41efe071

Branch: refs/heads/master
Commit: 41efe0710f7a8284d05545da65a4ff93b9490535
Parents: 886d3cb
Author: Alan Conway <ac...@redhat.com>
Authored: Tue Apr 4 15:58:13 2017 -0400
Committer: Alan Conway <ac...@redhat.com>
Committed: Tue Apr 4 16:28:29 2017 -0400

----------------------------------------------------------------------
 src/alloc_malloc.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/41efe071/src/alloc_malloc.h
----------------------------------------------------------------------
diff --git a/src/alloc_malloc.h b/src/alloc_malloc.h
index 6daf847..72c390c 100644
--- a/src/alloc_malloc.h
+++ b/src/alloc_malloc.h
@@ -28,11 +28,12 @@
 
 #define ALLOC_DECLARE(T)                        \
     T *new_##T(void);                           \
-    void free_##T(T *p);
+    void free_##T(T *p)
 
 #define ALLOC_DEFINE_CONFIG(T,S,A,C)                                    \
     T *new_##T(void) { size_t *a = (A); return (T*) malloc((S)+ (a ? *a : 0)); } \
     void free_##T(T *p) { free(p); } \
+    void *unused##T
 
 #define ALLOC_DEFINE(T) ALLOC_DEFINE_CONFIG(T, sizeof(T), 0, 0)
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org