aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-05-01 17:30:17 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-05-01 17:32:04 -0300
commit96e54666768a603a4027ae86ce40a9e1e603bc04 (patch)
treea9e191e2754f6c1a0c9e23b5a79c2c210553b2cc
parent851fc5c8a1543e19bd777e3588269a60b94b924f (diff)
libdvbv5: shut up gcc 9 "-Waddress-of-packed-member" noise
At the DVB code, descriptors use unaligned structs in order to parse MPEG-TS. Yeah, we know that the data may not be aligned. That's exactly what we want do to. So, just shut up those warnings. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-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 7a839ad3..55a39603 100644
--- a/lib/libdvbv5/descriptors/desc_atsc_service_location.c
+++ b/lib/libdvbv5/descriptors/desc_atsc_service_location.c
@@ -20,6 +20,8 @@
#include <libdvbv5/desc_atsc_service_location.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
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 c1ab10e1..899475fa 100644
--- a/lib/libdvbv5/descriptors/desc_ca.c
+++ b/lib/libdvbv5/descriptors/desc_ca.c
@@ -21,6 +21,8 @@
#include <libdvbv5/desc_ca.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
int dvb_desc_ca_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
size_t size = offsetof(struct dvb_desc_ca, dvb_desc_ca_field_last) - offsetof(struct dvb_desc_ca, dvb_desc_ca_field_first);
diff --git a/lib/libdvbv5/descriptors/desc_ca_identifier.c b/lib/libdvbv5/descriptors/desc_ca_identifier.c
index 0373080b..41eeb730 100644
--- a/lib/libdvbv5/descriptors/desc_ca_identifier.c
+++ b/lib/libdvbv5/descriptors/desc_ca_identifier.c
@@ -21,6 +21,8 @@
#include <libdvbv5/desc_ca_identifier.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
int dvb_desc_ca_identifier_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
struct dvb_desc_ca_identifier *d = (struct dvb_desc_ca_identifier *) desc;
diff --git a/lib/libdvbv5/descriptors/desc_cable_delivery.c b/lib/libdvbv5/descriptors/desc_cable_delivery.c
index ea3ecf93..e58aeb45 100644
--- a/lib/libdvbv5/descriptors/desc_cable_delivery.c
+++ b/lib/libdvbv5/descriptors/desc_cable_delivery.c
@@ -22,6 +22,8 @@
#include <libdvbv5/desc_cable_delivery.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
int dvb_desc_cable_delivery_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
struct dvb_desc_cable_delivery *cable = (struct dvb_desc_cable_delivery *) desc;
diff --git a/lib/libdvbv5/descriptors/desc_event_extended.c b/lib/libdvbv5/descriptors/desc_event_extended.c
index 624ac01c..c412e32d 100644
--- a/lib/libdvbv5/descriptors/desc_event_extended.c
+++ b/lib/libdvbv5/descriptors/desc_event_extended.c
@@ -30,6 +30,8 @@
# define _(string) string
#endif
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
int dvb_desc_event_extended_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
struct dvb_desc_event_extended *event = (struct dvb_desc_event_extended *) desc;
diff --git a/lib/libdvbv5/descriptors/desc_event_short.c b/lib/libdvbv5/descriptors/desc_event_short.c
index 881e6d45..3cb903a5 100644
--- a/lib/libdvbv5/descriptors/desc_event_short.c
+++ b/lib/libdvbv5/descriptors/desc_event_short.c
@@ -22,6 +22,8 @@
#include <libdvbv5/dvb-fe.h>
#include <parse_string.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
int dvb_desc_event_short_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
struct dvb_desc_event_short *event = (struct dvb_desc_event_short *) desc;
diff --git a/lib/libdvbv5/descriptors/desc_extension.c b/lib/libdvbv5/descriptors/desc_extension.c
index e3aa77ed..66e02831 100644
--- a/lib/libdvbv5/descriptors/desc_extension.c
+++ b/lib/libdvbv5/descriptors/desc_extension.c
@@ -21,6 +21,8 @@
#include <libdvbv5/desc_t2_delivery.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
const struct dvb_ext_descriptor dvb_ext_descriptors[] = {
[0 ...255 ] = {
.name = "Unknown descriptor",
diff --git a/lib/libdvbv5/descriptors/desc_frequency_list.c b/lib/libdvbv5/descriptors/desc_frequency_list.c
index 1860ebef..b5cebe9a 100644
--- a/lib/libdvbv5/descriptors/desc_frequency_list.c
+++ b/lib/libdvbv5/descriptors/desc_frequency_list.c
@@ -21,6 +21,8 @@
#include <libdvbv5/desc_frequency_list.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
int dvb_desc_frequency_list_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
struct dvb_desc_frequency_list *d = (struct dvb_desc_frequency_list *) desc;
diff --git a/lib/libdvbv5/descriptors/desc_hierarchy.c b/lib/libdvbv5/descriptors/desc_hierarchy.c
index 781e03a6..ca7bdcfd 100644
--- a/lib/libdvbv5/descriptors/desc_hierarchy.c
+++ b/lib/libdvbv5/descriptors/desc_hierarchy.c
@@ -21,6 +21,8 @@
#include <libdvbv5/desc_hierarchy.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
int dvb_desc_hierarchy_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
struct dvb_desc_hierarchy *hierarchy = (struct dvb_desc_hierarchy *) desc;
diff --git a/lib/libdvbv5/descriptors/desc_isdbt_delivery.c b/lib/libdvbv5/descriptors/desc_isdbt_delivery.c
index fd79630f..b36d74b7 100644
--- a/lib/libdvbv5/descriptors/desc_isdbt_delivery.c
+++ b/lib/libdvbv5/descriptors/desc_isdbt_delivery.c
@@ -21,6 +21,8 @@
#include <libdvbv5/dvb-fe.h>
#include <inttypes.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
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 1ae9683d..620bd88b 100644
--- a/lib/libdvbv5/descriptors/desc_language.c
+++ b/lib/libdvbv5/descriptors/desc_language.c
@@ -21,6 +21,8 @@
#include <libdvbv5/desc_language.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
int dvb_desc_language_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
struct dvb_desc_language *lang = (struct dvb_desc_language *) desc;
diff --git a/lib/libdvbv5/descriptors/desc_logical_channel.c b/lib/libdvbv5/descriptors/desc_logical_channel.c
index 1a842b46..e3da9673 100644
--- a/lib/libdvbv5/descriptors/desc_logical_channel.c
+++ b/lib/libdvbv5/descriptors/desc_logical_channel.c
@@ -24,6 +24,8 @@
#include <libdvbv5/desc_logical_channel.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
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 610736ee..b18513bf 100644
--- a/lib/libdvbv5/descriptors/desc_network_name.c
+++ b/lib/libdvbv5/descriptors/desc_network_name.c
@@ -22,6 +22,8 @@
#include <libdvbv5/dvb-fe.h>
#include <parse_string.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
int dvb_desc_network_name_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
struct dvb_desc_network_name *net = (struct dvb_desc_network_name *) desc;
diff --git a/lib/libdvbv5/descriptors/desc_partial_reception.c b/lib/libdvbv5/descriptors/desc_partial_reception.c
index 26645063..fe6be5b7 100644
--- a/lib/libdvbv5/descriptors/desc_partial_reception.c
+++ b/lib/libdvbv5/descriptors/desc_partial_reception.c
@@ -21,6 +21,8 @@
#include <libdvbv5/desc_partial_reception.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
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 d6e263a5..3d223ba7 100644
--- a/lib/libdvbv5/descriptors/desc_sat.c
+++ b/lib/libdvbv5/descriptors/desc_sat.c
@@ -21,6 +21,8 @@
#include <libdvbv5/desc_sat.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
int dvb_desc_sat_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
struct dvb_desc_sat *sat = (struct dvb_desc_sat *) desc;
diff --git a/lib/libdvbv5/descriptors/desc_service.c b/lib/libdvbv5/descriptors/desc_service.c
index 8793feed..61728a24 100644
--- a/lib/libdvbv5/descriptors/desc_service.c
+++ b/lib/libdvbv5/descriptors/desc_service.c
@@ -22,6 +22,8 @@
#include <libdvbv5/dvb-fe.h>
#include <parse_string.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
int dvb_desc_service_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
struct dvb_desc_service *service = (struct dvb_desc_service *) desc;
diff --git a/lib/libdvbv5/descriptors/desc_t2_delivery.c b/lib/libdvbv5/descriptors/desc_t2_delivery.c
index e09973c0..35957e08 100644
--- a/lib/libdvbv5/descriptors/desc_t2_delivery.c
+++ b/lib/libdvbv5/descriptors/desc_t2_delivery.c
@@ -22,6 +22,8 @@
#include <libdvbv5/desc_t2_delivery.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
int dvb_desc_t2_delivery_init(struct dvb_v5_fe_parms *parms,
const uint8_t *buf,
struct dvb_extension_descriptor *ext,
diff --git a/lib/libdvbv5/descriptors/desc_terrestrial_delivery.c b/lib/libdvbv5/descriptors/desc_terrestrial_delivery.c
index 263eca73..508c18d6 100644
--- a/lib/libdvbv5/descriptors/desc_terrestrial_delivery.c
+++ b/lib/libdvbv5/descriptors/desc_terrestrial_delivery.c
@@ -23,6 +23,8 @@
#include <libdvbv5/desc_terrestrial_delivery.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
int dvb_desc_terrestrial_delivery_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
{
struct dvb_desc_terrestrial_delivery *tdel = (struct dvb_desc_terrestrial_delivery *) desc;
diff --git a/lib/libdvbv5/descriptors/desc_ts_info.c b/lib/libdvbv5/descriptors/desc_ts_info.c
index d13d5d5f..d8f805b1 100644
--- a/lib/libdvbv5/descriptors/desc_ts_info.c
+++ b/lib/libdvbv5/descriptors/desc_ts_info.c
@@ -22,6 +22,8 @@
#include <libdvbv5/dvb-fe.h>
#include <parse_string.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
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 08942117..3b0ac616 100644
--- a/lib/libdvbv5/tables/atsc_eit.c
+++ b/lib/libdvbv5/tables/atsc_eit.c
@@ -21,6 +21,8 @@
#include <libdvbv5/descriptors.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
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 266bc683..dbcf4c4c 100644
--- a/lib/libdvbv5/tables/cat.c
+++ b/lib/libdvbv5/tables/cat.c
@@ -21,6 +21,8 @@
#include <libdvbv5/descriptors.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
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 40db637a..c1a6a44e 100644
--- a/lib/libdvbv5/tables/eit.c
+++ b/lib/libdvbv5/tables/eit.c
@@ -21,6 +21,8 @@
#include <libdvbv5/descriptors.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
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 8048ac58..908f4baa 100644
--- a/lib/libdvbv5/tables/header.c
+++ b/lib/libdvbv5/tables/header.c
@@ -22,6 +22,8 @@
#include <libdvbv5/descriptors.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
void dvb_table_header_init(struct dvb_table_header *t)
{
bswap16(t->bitfield);
diff --git a/lib/libdvbv5/tables/mgt.c b/lib/libdvbv5/tables/mgt.c
index 35c1ebbe..8d118512 100644
--- a/lib/libdvbv5/tables/mgt.c
+++ b/lib/libdvbv5/tables/mgt.c
@@ -21,6 +21,8 @@
#include <libdvbv5/descriptors.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
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 0c96486a..da5a8120 100644
--- a/lib/libdvbv5/tables/mpeg_es.c
+++ b/lib/libdvbv5/tables/mpeg_es.c
@@ -21,6 +21,8 @@
#include <libdvbv5/descriptors.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
int dvb_mpeg_es_seq_start_init(const uint8_t *buf, ssize_t buflen, struct dvb_mpeg_es_seq_start *seq_start)
{
if(buflen < sizeof(struct dvb_mpeg_es_seq_start))
diff --git a/lib/libdvbv5/tables/mpeg_pes.c b/lib/libdvbv5/tables/mpeg_pes.c
index 5a2a582e..ae486e7b 100644
--- a/lib/libdvbv5/tables/mpeg_pes.c
+++ b/lib/libdvbv5/tables/mpeg_pes.c
@@ -22,6 +22,8 @@
#include <libdvbv5/dvb-fe.h>
#include <inttypes.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
ssize_t dvb_mpeg_pes_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, ssize_t buflen, uint8_t *table)
{
struct dvb_mpeg_pes *pes = (struct dvb_mpeg_pes *) table;
diff --git a/lib/libdvbv5/tables/mpeg_ts.c b/lib/libdvbv5/tables/mpeg_ts.c
index 335d0b7c..e6caf936 100644
--- a/lib/libdvbv5/tables/mpeg_ts.c
+++ b/lib/libdvbv5/tables/mpeg_ts.c
@@ -21,6 +21,8 @@
#include <libdvbv5/descriptors.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
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)
{
struct dvb_mpeg_ts *ts = (struct dvb_mpeg_ts *) table;
diff --git a/lib/libdvbv5/tables/nit.c b/lib/libdvbv5/tables/nit.c
index ffa7adec..1f3a1c8c 100644
--- a/lib/libdvbv5/tables/nit.c
+++ b/lib/libdvbv5/tables/nit.c
@@ -21,6 +21,8 @@
#include <libdvbv5/nit.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
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 092beef4..a25d4ec9 100644
--- a/lib/libdvbv5/tables/pat.c
+++ b/lib/libdvbv5/tables/pat.c
@@ -22,6 +22,8 @@
#include <libdvbv5/descriptors.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
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 4efa6b3a..9c9fe271 100644
--- a/lib/libdvbv5/tables/pmt.c
+++ b/lib/libdvbv5/tables/pmt.c
@@ -24,6 +24,8 @@
#include <string.h> /* memcpy */
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
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 667b7808..d97ecc61 100644
--- a/lib/libdvbv5/tables/sdt.c
+++ b/lib/libdvbv5/tables/sdt.c
@@ -22,6 +22,8 @@
#include <libdvbv5/descriptors.h>
#include <libdvbv5/dvb-fe.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
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 807a399a..18222bfa 100644
--- a/lib/libdvbv5/tables/vct.c
+++ b/lib/libdvbv5/tables/vct.c
@@ -23,6 +23,8 @@
#include <libdvbv5/dvb-fe.h>
#include <parse_string.h>
+#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
+
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