aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/gstreamer/imx-gst1.0-plugin/0001-fsl_parser.h-fix-compiler-error-with-fcommon.patch
blob: 9a0afea5dbcabe6b7ee9d80aaef9228b5ccc85c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From eb89cd344535706c6194359bd1f1fed50162a041 Mon Sep 17 00:00:00 2001
From: Andrey Zhizhikin <andrey.z@gmail.com>
Date: Tue, 1 Sep 2020 08:24:52 +0000
Subject: [PATCH] fsl_parser.h: fix compiler error with -fcommon

When -fcommon is set in GCC10 configuration, following error is produced
during linking:
./git/ext-includes/fsl_parser.h:598: multiple definition of `TrackExtTagIndex';
./git/ext-includes/fsl_parser.h:598: first defined here

Remove unused enum name to resolve multiple definitions, it is not used
anywhere in the code base.

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
---
 ext-includes/fsl_parser.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext-includes/fsl_parser.h b/ext-includes/fsl_parser.h
index d3aae20..c037c9a 100755
--- a/ext-includes/fsl_parser.h
+++ b/ext-includes/fsl_parser.h
@@ -595,7 +595,7 @@ enum{
     FSL_PARSER_TRACKEXTTAG_CRYPTO_ENCRYPTED_BYTE_BLOCK,
     FSL_PARSER_TRACKEXTTAG_CRYPTO_SKIP_BYTE_BLOCK,
     FSL_PARSER_TRACKEXTTAG_CRYPTO_IV,
-}TrackExtTagIndex;
+};
 
 typedef struct _SeiPosition
 {
-- 
2.17.1