aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-05-15 09:32:37 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-05-15 09:32:37 +0200
commit5cd5b668d79134976c9a9d816bddf9412c22de7a (patch)
tree90f21e92b4020637aab0b515a5abfeacb2d63b2f
parent0d61ddede7d340ffa1c75a2882e30c455ef3d8b8 (diff)
lib/libdvdv5: add #if __GNUC__ >= 9 before #pragma
The -Waddress-of-packed-member option is only available in gcc versions 9 and up. So add '#if __GNUC__ >= 9' before this pragma: #pragma GCC diagnostic ignored "-Waddress-of-packed-member" to avoid compiler warnings when compiled with older gcc versions. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--lib/libdvbv5/descriptors/desc_atsc_service_location.c2
-rw-r--r--lib/libdvbv5/descriptors/desc_ca.c2
-rw-r--r--lib/libdvbv5/descriptors/desc_ca_identifier.c2
-rw-r--r--lib/libdvbv5/descriptors/desc_cable_delivery.c2
-rw-r--r--lib/libdvbv5/descriptors/desc_event_extended.c2
-rw-r--r--lib/libdvbv5/descriptors/desc_event_short.c2
-rw-r--r--lib/libdvbv5/descriptors/desc_extension.c2
-rw-r--r--lib/libdvbv5/descriptors/desc_frequency_list.c2
-rw-r--r--lib/libdvbv5/descriptors/desc_hierarchy.c2
-rw-r--r--lib/libdvbv5/descriptors/desc_isdbt_delivery.c2
-rw-r--r--lib/libdvbv5/descriptors/desc_language.c2
-rw-r--r--lib/libdvbv5/descriptors/desc_logical_channel.c2
-rw-r--r--lib/libdvbv5/descriptors/desc_network_name.c2
-rw-r--r--lib/libdvbv5/descriptors/desc_partial_reception.c2
-rw-r--r--lib/libdvbv5/descriptors/desc_sat.c2
-rw-r--r--lib/libdvbv5/descriptors/desc_service.c2
-rw-r--r--lib/libdvbv5/descriptors/desc_t2_delivery.c2
-rw-r--r--lib/libdvbv5/descriptors/desc_terrestrial_delivery.c2
-rw-r--r--lib/libdvbv5/descriptors/desc_ts_info.c2
-rw-r--r--lib/libdvbv5/tables/atsc_eit.c2
-rw-r--r--lib/libdvbv5/tables/cat.c2
-rw-r--r--lib/libdvbv5/tables/eit.c2
-rw-r--r--lib/libdvbv5/tables/header.c2
-rw-r--r--lib/libdvbv5/tables/mgt.c2
-rw-r--r--lib/libdvbv5/tables/mpeg_es.c2
-rw-r--r--lib/libdvbv5/tables/mpeg_pes.c2
-rw-r--r--lib/libdvbv5/tables/mpeg_ts.c2
-rw-r--r--lib/libdvbv5/tables/nit.c2
-rw-r--r--lib/libdvbv5/tables/pat.c2
-rw-r--r--lib/libdvbv5/tables/pmt.c2
-rw-r--r--lib/libdvbv5/tables/sdt.c2
-rw-r--r--lib/libdvbv5/tables/vct.c2
32 files changed, 64 insertions, 0 deletions
diff --git a/lib/libdvbv5/descriptors/desc_atsc_service_location.c b/lib/libdvbv5/descriptors/desc_atsc_service_location.c
index 55a39603..6a40ab79 100644
--- a/lib/libdvbv5/descriptors/desc_atsc_service_location.c
+++ b/lib/libdvbv5/descriptors/desc_atsc_service_location.c
@@ -20,7 +20,9 @@
#include <libdvbv5/desc_atsc_service_location.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
int atsc_desc_service_location_init(struct dvb_v5_fe_parms *parms,
const uint8_t *buf, struct dvb_desc *desc)
diff --git a/lib/libdvbv5/descriptors/desc_ca.c b/lib/libdvbv5/descriptors/desc_ca.c
index 899475fa..8e885b4f 100644
--- a/lib/libdvbv5/descriptors/desc_ca.c
+++ b/lib/libdvbv5/descriptors/desc_ca.c
@@ -21,7 +21,9 @@
#include <libdvbv5/desc_ca.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
int dvb_desc_ca_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
diff --git a/lib/libdvbv5/descriptors/desc_ca_identifier.c b/lib/libdvbv5/descriptors/desc_ca_identifier.c
index 41eeb730..d67db3de 100644
--- a/lib/libdvbv5/descriptors/desc_ca_identifier.c
+++ b/lib/libdvbv5/descriptors/desc_ca_identifier.c
@@ -21,7 +21,9 @@
#include <libdvbv5/desc_ca_identifier.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
int dvb_desc_ca_identifier_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
diff --git a/lib/libdvbv5/descriptors/desc_cable_delivery.c b/lib/libdvbv5/descriptors/desc_cable_delivery.c
index e58aeb45..3c969d90 100644
--- a/lib/libdvbv5/descriptors/desc_cable_delivery.c
+++ b/lib/libdvbv5/descriptors/desc_cable_delivery.c
@@ -22,7 +22,9 @@
#include <libdvbv5/desc_cable_delivery.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
int dvb_desc_cable_delivery_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
diff --git a/lib/libdvbv5/descriptors/desc_event_extended.c b/lib/libdvbv5/descriptors/desc_event_extended.c
index c412e32d..ea8419bb 100644
--- a/lib/libdvbv5/descriptors/desc_event_extended.c
+++ b/lib/libdvbv5/descriptors/desc_event_extended.c
@@ -30,7 +30,9 @@
# define _(string) string
#endif
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
int dvb_desc_event_extended_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
diff --git a/lib/libdvbv5/descriptors/desc_event_short.c b/lib/libdvbv5/descriptors/desc_event_short.c
index 3cb903a5..57321651 100644
--- a/lib/libdvbv5/descriptors/desc_event_short.c
+++ b/lib/libdvbv5/descriptors/desc_event_short.c
@@ -22,7 +22,9 @@
#include <libdvbv5/dvb-fe.h>
#include <parse_string.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
int dvb_desc_event_short_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
diff --git a/lib/libdvbv5/descriptors/desc_extension.c b/lib/libdvbv5/descriptors/desc_extension.c
index 66e02831..11b997da 100644
--- a/lib/libdvbv5/descriptors/desc_extension.c
+++ b/lib/libdvbv5/descriptors/desc_extension.c
@@ -21,7 +21,9 @@
#include <libdvbv5/desc_t2_delivery.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
const struct dvb_ext_descriptor dvb_ext_descriptors[] = {
[0 ...255 ] = {
diff --git a/lib/libdvbv5/descriptors/desc_frequency_list.c b/lib/libdvbv5/descriptors/desc_frequency_list.c
index b5cebe9a..2699a067 100644
--- a/lib/libdvbv5/descriptors/desc_frequency_list.c
+++ b/lib/libdvbv5/descriptors/desc_frequency_list.c
@@ -21,7 +21,9 @@
#include <libdvbv5/desc_frequency_list.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
int dvb_desc_frequency_list_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
diff --git a/lib/libdvbv5/descriptors/desc_hierarchy.c b/lib/libdvbv5/descriptors/desc_hierarchy.c
index ca7bdcfd..5bdb16dd 100644
--- a/lib/libdvbv5/descriptors/desc_hierarchy.c
+++ b/lib/libdvbv5/descriptors/desc_hierarchy.c
@@ -21,7 +21,9 @@
#include <libdvbv5/desc_hierarchy.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
int dvb_desc_hierarchy_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
diff --git a/lib/libdvbv5/descriptors/desc_isdbt_delivery.c b/lib/libdvbv5/descriptors/desc_isdbt_delivery.c
index b36d74b7..98688629 100644
--- a/lib/libdvbv5/descriptors/desc_isdbt_delivery.c
+++ b/lib/libdvbv5/descriptors/desc_isdbt_delivery.c
@@ -21,7 +21,9 @@
#include <libdvbv5/dvb-fe.h>
#include <inttypes.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
int isdbt_desc_delivery_init(struct dvb_v5_fe_parms *parms,
const uint8_t *buf, struct dvb_desc *desc)
diff --git a/lib/libdvbv5/descriptors/desc_language.c b/lib/libdvbv5/descriptors/desc_language.c
index 620bd88b..fd4e57ab 100644
--- a/lib/libdvbv5/descriptors/desc_language.c
+++ b/lib/libdvbv5/descriptors/desc_language.c
@@ -21,7 +21,9 @@
#include <libdvbv5/desc_language.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
int dvb_desc_language_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
diff --git a/lib/libdvbv5/descriptors/desc_logical_channel.c b/lib/libdvbv5/descriptors/desc_logical_channel.c
index e3da9673..c2aa39b1 100644
--- a/lib/libdvbv5/descriptors/desc_logical_channel.c
+++ b/lib/libdvbv5/descriptors/desc_logical_channel.c
@@ -24,7 +24,9 @@
#include <libdvbv5/desc_logical_channel.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
int dvb_desc_logical_channel_init(struct dvb_v5_fe_parms *parms,
const uint8_t *buf, struct dvb_desc *desc)
diff --git a/lib/libdvbv5/descriptors/desc_network_name.c b/lib/libdvbv5/descriptors/desc_network_name.c
index b18513bf..c88404c9 100644
--- a/lib/libdvbv5/descriptors/desc_network_name.c
+++ b/lib/libdvbv5/descriptors/desc_network_name.c
@@ -22,7 +22,9 @@
#include <libdvbv5/dvb-fe.h>
#include <parse_string.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
int dvb_desc_network_name_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
diff --git a/lib/libdvbv5/descriptors/desc_partial_reception.c b/lib/libdvbv5/descriptors/desc_partial_reception.c
index fe6be5b7..2c31404f 100644
--- a/lib/libdvbv5/descriptors/desc_partial_reception.c
+++ b/lib/libdvbv5/descriptors/desc_partial_reception.c
@@ -21,7 +21,9 @@
#include <libdvbv5/desc_partial_reception.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
int isdb_desc_partial_reception_init(struct dvb_v5_fe_parms *parms,
const uint8_t *buf, struct dvb_desc *desc)
diff --git a/lib/libdvbv5/descriptors/desc_sat.c b/lib/libdvbv5/descriptors/desc_sat.c
index 3d223ba7..d9fc06e9 100644
--- a/lib/libdvbv5/descriptors/desc_sat.c
+++ b/lib/libdvbv5/descriptors/desc_sat.c
@@ -21,7 +21,9 @@
#include <libdvbv5/desc_sat.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
int dvb_desc_sat_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
diff --git a/lib/libdvbv5/descriptors/desc_service.c b/lib/libdvbv5/descriptors/desc_service.c
index 61728a24..78673740 100644
--- a/lib/libdvbv5/descriptors/desc_service.c
+++ b/lib/libdvbv5/descriptors/desc_service.c
@@ -22,7 +22,9 @@
#include <libdvbv5/dvb-fe.h>
#include <parse_string.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
int dvb_desc_service_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
diff --git a/lib/libdvbv5/descriptors/desc_t2_delivery.c b/lib/libdvbv5/descriptors/desc_t2_delivery.c
index 35957e08..f88718d3 100644
--- a/lib/libdvbv5/descriptors/desc_t2_delivery.c
+++ b/lib/libdvbv5/descriptors/desc_t2_delivery.c
@@ -22,7 +22,9 @@
#include <libdvbv5/desc_t2_delivery.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
int dvb_desc_t2_delivery_init(struct dvb_v5_fe_parms *parms,
const uint8_t *buf,
diff --git a/lib/libdvbv5/descriptors/desc_terrestrial_delivery.c b/lib/libdvbv5/descriptors/desc_terrestrial_delivery.c
index 508c18d6..e4e41445 100644
--- a/lib/libdvbv5/descriptors/desc_terrestrial_delivery.c
+++ b/lib/libdvbv5/descriptors/desc_terrestrial_delivery.c
@@ -23,7 +23,9 @@
#include <libdvbv5/desc_terrestrial_delivery.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
int dvb_desc_terrestrial_delivery_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
diff --git a/lib/libdvbv5/descriptors/desc_ts_info.c b/lib/libdvbv5/descriptors/desc_ts_info.c
index d8f805b1..1b4ce1b4 100644
--- a/lib/libdvbv5/descriptors/desc_ts_info.c
+++ b/lib/libdvbv5/descriptors/desc_ts_info.c
@@ -22,7 +22,9 @@
#include <libdvbv5/dvb-fe.h>
#include <parse_string.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
int dvb_desc_ts_info_init(struct dvb_v5_fe_parms *parms,
const uint8_t *buf, struct dvb_desc *desc)
diff --git a/lib/libdvbv5/tables/atsc_eit.c b/lib/libdvbv5/tables/atsc_eit.c
index 8d355b42..daafaffe 100644
--- a/lib/libdvbv5/tables/atsc_eit.c
+++ b/lib/libdvbv5/tables/atsc_eit.c
@@ -21,7 +21,9 @@
#include <libdvbv5/descriptors.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
ssize_t atsc_table_eit_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf,
ssize_t buflen, struct atsc_table_eit **table)
diff --git a/lib/libdvbv5/tables/cat.c b/lib/libdvbv5/tables/cat.c
index 242c1d97..d038b637 100644
--- a/lib/libdvbv5/tables/cat.c
+++ b/lib/libdvbv5/tables/cat.c
@@ -21,7 +21,9 @@
#include <libdvbv5/descriptors.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
ssize_t dvb_table_cat_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf,
ssize_t buflen, struct dvb_table_cat **table)
diff --git a/lib/libdvbv5/tables/eit.c b/lib/libdvbv5/tables/eit.c
index 26336a7a..28d7ec2c 100644
--- a/lib/libdvbv5/tables/eit.c
+++ b/lib/libdvbv5/tables/eit.c
@@ -21,7 +21,9 @@
#include <libdvbv5/descriptors.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
ssize_t dvb_table_eit_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf,
ssize_t buflen, struct dvb_table_eit **table)
diff --git a/lib/libdvbv5/tables/header.c b/lib/libdvbv5/tables/header.c
index 908f4baa..8575f378 100644
--- a/lib/libdvbv5/tables/header.c
+++ b/lib/libdvbv5/tables/header.c
@@ -22,7 +22,9 @@
#include <libdvbv5/descriptors.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
void dvb_table_header_init(struct dvb_table_header *t)
{
diff --git a/lib/libdvbv5/tables/mgt.c b/lib/libdvbv5/tables/mgt.c
index 85aa5022..784e70f4 100644
--- a/lib/libdvbv5/tables/mgt.c
+++ b/lib/libdvbv5/tables/mgt.c
@@ -21,7 +21,9 @@
#include <libdvbv5/descriptors.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
ssize_t atsc_table_mgt_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf,
ssize_t buflen, struct atsc_table_mgt **table)
diff --git a/lib/libdvbv5/tables/mpeg_es.c b/lib/libdvbv5/tables/mpeg_es.c
index da5a8120..81b6f76b 100644
--- a/lib/libdvbv5/tables/mpeg_es.c
+++ b/lib/libdvbv5/tables/mpeg_es.c
@@ -21,7 +21,9 @@
#include <libdvbv5/descriptors.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
int dvb_mpeg_es_seq_start_init(const uint8_t *buf, ssize_t buflen, struct dvb_mpeg_es_seq_start *seq_start)
{
diff --git a/lib/libdvbv5/tables/mpeg_pes.c b/lib/libdvbv5/tables/mpeg_pes.c
index ae486e7b..6cd28b7a 100644
--- a/lib/libdvbv5/tables/mpeg_pes.c
+++ b/lib/libdvbv5/tables/mpeg_pes.c
@@ -22,7 +22,9 @@
#include <libdvbv5/dvb-fe.h>
#include <inttypes.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
ssize_t dvb_mpeg_pes_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, ssize_t buflen, uint8_t *table)
{
diff --git a/lib/libdvbv5/tables/mpeg_ts.c b/lib/libdvbv5/tables/mpeg_ts.c
index 9e490e86..a7999f1e 100644
--- a/lib/libdvbv5/tables/mpeg_ts.c
+++ b/lib/libdvbv5/tables/mpeg_ts.c
@@ -21,7 +21,9 @@
#include <libdvbv5/descriptors.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
ssize_t dvb_mpeg_ts_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, ssize_t buflen, uint8_t *table, ssize_t *table_length)
{
diff --git a/lib/libdvbv5/tables/nit.c b/lib/libdvbv5/tables/nit.c
index 1f3a1c8c..c343d4e9 100644
--- a/lib/libdvbv5/tables/nit.c
+++ b/lib/libdvbv5/tables/nit.c
@@ -21,7 +21,9 @@
#include <libdvbv5/nit.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
ssize_t dvb_table_nit_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf,
ssize_t buflen, struct dvb_table_nit **table)
diff --git a/lib/libdvbv5/tables/pat.c b/lib/libdvbv5/tables/pat.c
index 4f874a85..6c270083 100644
--- a/lib/libdvbv5/tables/pat.c
+++ b/lib/libdvbv5/tables/pat.c
@@ -22,7 +22,9 @@
#include <libdvbv5/descriptors.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
ssize_t dvb_table_pat_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf,
ssize_t buflen, struct dvb_table_pat **table)
diff --git a/lib/libdvbv5/tables/pmt.c b/lib/libdvbv5/tables/pmt.c
index 087ee4ba..5ba0bb2e 100644
--- a/lib/libdvbv5/tables/pmt.c
+++ b/lib/libdvbv5/tables/pmt.c
@@ -24,7 +24,9 @@
#include <string.h> /* memcpy */
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
ssize_t dvb_table_pmt_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf,
ssize_t buflen, struct dvb_table_pmt **table)
diff --git a/lib/libdvbv5/tables/sdt.c b/lib/libdvbv5/tables/sdt.c
index 4f616ee6..b98c5aca 100644
--- a/lib/libdvbv5/tables/sdt.c
+++ b/lib/libdvbv5/tables/sdt.c
@@ -22,7 +22,9 @@
#include <libdvbv5/descriptors.h>
#include <libdvbv5/dvb-fe.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
ssize_t dvb_table_sdt_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf,
ssize_t buflen, struct dvb_table_sdt **table)
diff --git a/lib/libdvbv5/tables/vct.c b/lib/libdvbv5/tables/vct.c
index 383834bd..1ecd61f8 100644
--- a/lib/libdvbv5/tables/vct.c
+++ b/lib/libdvbv5/tables/vct.c
@@ -23,7 +23,9 @@
#include <libdvbv5/dvb-fe.h>
#include <parse_string.h>
+#if __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+#endif
ssize_t atsc_table_vct_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf,
ssize_t buflen, struct atsc_table_vct **table)

Privacy Policy