I noticed gcc warnings connected with __attribute__ due to the malloc
redefinition.  This fixes them by adding an argument to the macro, so
that __attribute__((malloc)) still works.

Index: src/common/misc/pint-malloc.h
===================================================================
--- src/common/misc/pint-malloc.h	(revision 11976)
+++ src/common/misc/pint-malloc.h	(working copy)
@@ -85,7 +85,8 @@
 # ifdef malloc
 #  undef malloc
 # endif
-# define malloc PINT_malloc
+/* Defining it with an arg avoids losing on __attribute__((malloc))  */
+# define malloc(x) PINT_malloc(x)
 
 # ifdef calloc
 #  undef calloc
_______________________________________________
Pvfs2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users

Reply via email to