[dvblast-devel] Fix bunch of warnings about GNU extension under clang.

Zoran Turalija git at videolan.org
Wed Apr 17 12:14:33 CEST 2013


dvblast | branch: master | Zoran Turalija <zoran.turalija at gmail.com> | Wed Apr 17 11:24:43 2013 +0200| [2dee8bd6feab666e85e5371bd3796d2fd45975e6] | committer: Georgi Chorbadzhiyski

Fix bunch of warnings about GNU extension under clang.

Clang complaints are like:
./dvblast.h:136:22: warning: field 'raw_pkt_header' with variable sized type
      'struct udprawpkt' not at the end of a struct or class is a GNU extension
      [-Wgnu]
    struct udprawpkt raw_pkt_header;
                     ^

> http://git.videolan.org/gitweb.cgi/dvblast.git/?a=commit;h=2dee8bd6feab666e85e5371bd3796d2fd45975e6
---

 dvblast.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dvblast.h b/dvblast.h
index eb7f9d3..afae63c 100644
--- a/dvblast.h
+++ b/dvblast.h
@@ -130,7 +130,6 @@ typedef struct output_t
     /* output */
     int i_handle;
     packet_t *p_packets, *p_last_packet;
-    struct udprawpkt raw_pkt_header;
     uint16_t i_seqnum;
     mtime_t i_ref_timestamp;
     mtime_t i_ref_wallclock;
@@ -157,6 +156,8 @@ typedef struct output_t
     /* For pidmap from config file */
     bool b_do_remap;
     uint16_t pi_confpids[N_MAP_PIDS];
+
+    struct udprawpkt raw_pkt_header;
 } output_t;
 
 typedef struct ts_pid_info {



More information about the dvblast-devel mailing list