From: RĂ©mi Denis-Courmont Date: Wed, 17 Sep 2008 20:02:59 +0000 (+0300) Subject: Fix flexible array usage gcc-ism X-Git-Tag: 1.0.0-pre1~3177 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=74bc48807de24e717bb8971287cf6f2c17176579;p=vlc Fix flexible array usage gcc-ism --- diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c index eb1bc5390d..85f5f9bd94 100644 --- a/modules/services_discovery/sap.c +++ b/modules/services_discovery/sap.c @@ -212,7 +212,7 @@ struct sdp_t struct attribute_t { const char *value; - char name[0]; + char name[]; }; struct sap_announce_t diff --git a/src/misc/block.c b/src/misc/block.c index f85ade12f4..0effdb901b 100644 --- a/src/misc/block.c +++ b/src/misc/block.c @@ -40,7 +40,7 @@ struct block_sys_t { block_t self; size_t i_allocated_buffer; - uint8_t p_allocated_buffer[0]; + uint8_t p_allocated_buffer[]; }; #ifndef NDEBUG diff --git a/src/misc/win32_specific.c b/src/misc/win32_specific.c index 84f7dd3b12..e893a0bd02 100644 --- a/src/misc/win32_specific.c +++ b/src/misc/win32_specific.c @@ -130,7 +130,7 @@ typedef struct { int argc; int enqueue; - char data[0]; + char data[]; } vlc_ipc_data_t; void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] ) diff --git a/src/stream_output/sap.c b/src/stream_output/sap.c index e3c9d19f0c..e71906114d 100644 --- a/src/stream_output/sap.c +++ b/src/stream_output/sap.c @@ -53,7 +53,7 @@ typedef struct sap_session_t struct sap_session_t *next; const session_descriptor_t *p_sd; size_t length; - uint8_t data[0]; + uint8_t data[]; } sap_session_t; /* A SAP announce address. For each of these, we run the