[vlc-devel] commit: Fix flexible array usage gcc-ism ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Sep 17 22:05:29 CEST 2008
vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Sep 17 23:07:40 2008 +0300| [0b918bf71abf998317e2e16413d6e3ee64cd5ea2] | committer: Rémi Denis-Courmont
Fix flexible array usage gcc-ism
(cherry picked from commit 74bc48807de24e717bb8971287cf6f2c17176579)
Conflicts:
src/stream_output/sap.c
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0b918bf71abf998317e2e16413d6e3ee64cd5ea2
---
modules/services_discovery/sap.c | 2 +-
src/misc/block.c | 2 +-
src/misc/win32_specific.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c
index ec84aa9..1d0db59 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 3909d33..80832f5 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 85d52a5..c43a376 100644
--- a/src/misc/win32_specific.c
+++ b/src/misc/win32_specific.c
@@ -129,7 +129,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[] )
More information about the vlc-devel
mailing list