Commit 74bc4880 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix flexible array usage gcc-ism

parent d2deac2c
...@@ -212,7 +212,7 @@ struct sdp_t ...@@ -212,7 +212,7 @@ struct sdp_t
struct attribute_t struct attribute_t
{ {
const char *value; const char *value;
char name[0]; char name[];
}; };
struct sap_announce_t struct sap_announce_t
......
...@@ -40,7 +40,7 @@ struct block_sys_t ...@@ -40,7 +40,7 @@ struct block_sys_t
{ {
block_t self; block_t self;
size_t i_allocated_buffer; size_t i_allocated_buffer;
uint8_t p_allocated_buffer[0]; uint8_t p_allocated_buffer[];
}; };
#ifndef NDEBUG #ifndef NDEBUG
......
...@@ -130,7 +130,7 @@ typedef struct ...@@ -130,7 +130,7 @@ typedef struct
{ {
int argc; int argc;
int enqueue; int enqueue;
char data[0]; char data[];
} vlc_ipc_data_t; } vlc_ipc_data_t;
void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] ) void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
......
...@@ -53,7 +53,7 @@ typedef struct sap_session_t ...@@ -53,7 +53,7 @@ typedef struct sap_session_t
struct sap_session_t *next; struct sap_session_t *next;
const session_descriptor_t *p_sd; const session_descriptor_t *p_sd;
size_t length; size_t length;
uint8_t data[0]; uint8_t data[];
} sap_session_t; } sap_session_t;
/* A SAP announce address. For each of these, we run the /* A SAP announce address. For each of these, we run the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment