On Fri, Aug 14, 2015 at 06:24:22PM +0200, Victor Toso wrote: > So we can avoid using using an attribute not supported for the compiler. > > warning: > ../spice-common/common/mem.h:91:80: warning: unknown attribute > '__alloc_size__' ignored [-Wunknown-attributes] Any idea if this is because your clang is too old, or because it only knows of __attribute__((alloc_size(x,y)) which is what is documented at https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-g_t_0040code_007balloc_005fsize_007d-function-attribute-3080 ? According to http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120521/058005.html clang has support for this attribute. Christophe
Attachment:
pgpUrW14C3dSW.pgp
Description: PGP signature
_______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel