* [FFmpeg-devel] [PATCH] avformat/mov_chan: Use anonymous union
@ 2024-03-25 14:53 Andreas Rheinhardt
2024-03-25 14:56 ` James Almer
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Rheinhardt @ 2024-03-25 14:53 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Rheinhardt
Fixes many -Wenum-conversion warnings with Clang caused by
e6c2c8703732bc46395c65c530038c8146df0deb.
See e.g.
https://fate.ffmpeg.org/log.cgi?time=20240325033545&slot=aarch64-linux-clang-10&log=compile
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
libavformat/mov_chan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mov_chan.c b/libavformat/mov_chan.c
index d5225acddf..287059d65b 100644
--- a/libavformat/mov_chan.c
+++ b/libavformat/mov_chan.c
@@ -30,7 +30,7 @@
#include "libavcodec/codec_id.h"
#include "mov_chan.h"
-enum ShortChannelName {
+enum {
c_L = AV_CHAN_FRONT_LEFT,
c_R = AV_CHAN_FRONT_RIGHT,
c_C = AV_CHAN_FRONT_CENTER,
--
2.40.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [FFmpeg-devel] [PATCH] avformat/mov_chan: Use anonymous union
2024-03-25 14:53 [FFmpeg-devel] [PATCH] avformat/mov_chan: Use anonymous union Andreas Rheinhardt
@ 2024-03-25 14:56 ` James Almer
2024-03-25 15:00 ` Andreas Rheinhardt
0 siblings, 1 reply; 4+ messages in thread
From: James Almer @ 2024-03-25 14:56 UTC (permalink / raw)
To: ffmpeg-devel
On 3/25/2024 11:53 AM, Andreas Rheinhardt wrote:
> Fixes many -Wenum-conversion warnings with Clang caused by
> e6c2c8703732bc46395c65c530038c8146df0deb.
> See e.g.
> https://fate.ffmpeg.org/log.cgi?time=20240325033545&slot=aarch64-linux-clang-10&log=compile
Anonymous union, or enum (Re: subject)?
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
> libavformat/mov_chan.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavformat/mov_chan.c b/libavformat/mov_chan.c
> index d5225acddf..287059d65b 100644
> --- a/libavformat/mov_chan.c
> +++ b/libavformat/mov_chan.c
> @@ -30,7 +30,7 @@
> #include "libavcodec/codec_id.h"
> #include "mov_chan.h"
>
> -enum ShortChannelName {
> +enum {
> c_L = AV_CHAN_FRONT_LEFT,
> c_R = AV_CHAN_FRONT_RIGHT,
> c_C = AV_CHAN_FRONT_CENTER,
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [FFmpeg-devel] [PATCH] avformat/mov_chan: Use anonymous union
2024-03-25 14:56 ` James Almer
@ 2024-03-25 15:00 ` Andreas Rheinhardt
2024-03-25 16:38 ` Henrik Gramner via ffmpeg-devel
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Rheinhardt @ 2024-03-25 15:00 UTC (permalink / raw)
To: ffmpeg-devel
James Almer:
> On 3/25/2024 11:53 AM, Andreas Rheinhardt wrote:
>> Fixes many -Wenum-conversion warnings with Clang caused by
>> e6c2c8703732bc46395c65c530038c8146df0deb.
>> See e.g.
>> https://fate.ffmpeg.org/log.cgi?time=20240325033545&slot=aarch64-linux-clang-10&log=compile
>
> Anonymous union, or enum (Re: subject)?
>
Right, it is an anonymous enum, not union. Amended locally.
- Andreas
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [FFmpeg-devel] [PATCH] avformat/mov_chan: Use anonymous union
2024-03-25 15:00 ` Andreas Rheinhardt
@ 2024-03-25 16:38 ` Henrik Gramner via ffmpeg-devel
0 siblings, 0 replies; 4+ messages in thread
From: Henrik Gramner via ffmpeg-devel @ 2024-03-25 16:38 UTC (permalink / raw)
To: FFmpeg development discussions and patches; +Cc: Henrik Gramner
On Mon, Mar 25, 2024 at 4:01 PM Andreas Rheinhardt
<andreas.rheinhardt@outlook.com> wrote:
>
> Right, it is an anonymous enum, not union. Amended locally.
>
> - Andreas
Can confirm this eliminates the warnings, lgtm.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-03-25 16:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-25 14:53 [FFmpeg-devel] [PATCH] avformat/mov_chan: Use anonymous union Andreas Rheinhardt
2024-03-25 14:56 ` James Almer
2024-03-25 15:00 ` Andreas Rheinhardt
2024-03-25 16:38 ` Henrik Gramner via ffmpeg-devel
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git