]> git.sesse.net Git - vlc/commitdiff
Fix flexible array usage gcc-ism
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 17 Sep 2008 20:02:59 +0000 (23:02 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 17 Sep 2008 20:04:10 +0000 (23:04 +0300)
modules/services_discovery/sap.c
src/misc/block.c
src/misc/win32_specific.c
src/stream_output/sap.c

index eb1bc5390da7cd50582b30dab3e2bcd89a88c119..85f5f9bd9420f263a0d3874bf991cd2ae95c7ed1 100644 (file)
@@ -212,7 +212,7 @@ struct  sdp_t
 struct attribute_t
 {
     const char *value;
-    char name[0];
+    char name[];
 };
 
 struct sap_announce_t
index f85ade12f48c68c75e4cc6de2cde70131eb9297e..0effdb901bd99c37e600b9d287116018deada934 100644 (file)
@@ -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
index 84f7dd3b12c026bd97e0f6cb6fa2ad3c791c679d..e893a0bd02554e3e7dfac515457d4cbc9b95c90d 100644 (file)
@@ -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[] )
index e3c9d19f0caa657942089245862fdd1a5b41230e..e71906114db4bb0aeca777063a9414205f0317a6 100644 (file)
@@ -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