spice-protocol/spice
Victor Toso fa19ebb83f macros: verify if __alloc_size__ works with clang
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]

void *spice_malloc0_n(size_t n_blocks, size_t n_block_bytes)
SPICE_GNUC_MALLOC SPICE_GNUC_ALLOC_SIZE2(1,2);

../spice-common/spice-protocol/spice/macros.h:52:52: note: expanded
from macro 'SPICE_GNUC_ALLOC_SIZE2'

 #define SPICE_GNUC_ALLOC_SIZE2(x,y) __attribute__((__alloc_size__(x,y)))
                                                    ^
2015-08-20 11:00:35 +01:00
..
barrier.h define spice_mb MemoryBarrier for WIN64 2011-02-02 11:34:19 +02:00
controller_prot.h Define and use new SPICE_MAGIC_CONST macro 2015-08-12 14:15:27 +02:00
end-packed.h mingw32: specify packing alignment to 1 byte, to override -mms-bitfield 2010-12-29 16:13:55 +01:00
enums.h Rename SpiceImageCompress constants 2015-07-23 16:22:56 +02:00
error_codes.h Clean up and standardize header guards 2010-02-04 16:47:14 +01:00
foreign_menu_prot.h Define and use new SPICE_MAGIC_CONST macro 2015-08-12 14:15:27 +02:00
ipc_ring.h Fix up SPICE_SPICE typo 2010-02-04 18:10:50 +01:00
macros.h macros: verify if __alloc_size__ works with clang 2015-08-20 11:00:35 +01:00
Makefile.am build-sys: Add --enable-code-generator 2015-08-07 11:54:47 +02:00
protocol.h Define and use new SPICE_MAGIC_CONST macro 2015-08-12 14:15:27 +02:00
qxl_dev.h Define and use new SPICE_MAGIC_CONST macro 2015-08-12 14:15:27 +02:00
qxl_windows.h Add QXL_ESCAPE_MONITOR_CONFIG enum 2015-06-30 16:23:42 +02:00
start-packed.h mingw32: specify packing alignment to 1 byte, to override -mms-bitfield 2010-12-29 16:13:55 +01:00
stats.h Define and use new SPICE_MAGIC_CONST macro 2015-08-12 14:15:27 +02:00
types.h Add byteswapping macros 2010-05-19 16:02:40 +02:00
vd_agent.h Add VD_AGENT_CAP_MONITORS_CONFIG_POSITION capability to client. 2015-08-06 11:52:00 +02:00
vdi_dev.h Define and use new SPICE_MAGIC_CONST macro 2015-08-12 14:15:27 +02:00