[vlc-devel] commit: Fix flexible array usage gcc-ism ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Sep 17 22:00:51 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Sep 17 23:02:59 2008 +0300| [74bc48807de24e717bb8971287cf6f2c17176579] | committer: Rémi Denis-Courmont 

Fix flexible array usage gcc-ism

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=74bc48807de24e717bb8971287cf6f2c17176579
---

 modules/services_discovery/sap.c |    2 +-
 src/misc/block.c                 |    2 +-
 src/misc/win32_specific.c        |    2 +-
 src/stream_output/sap.c          |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c
index eb1bc53..85f5f9b 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 f85ade1..0effdb9 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 84f7dd3..e893a0b 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 e3c9d19..e719061 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




More information about the vlc-devel mailing list