[FFmpeg-devel] [PATCH]configure: Add -Wno-main

Carl Eugen Hoyos ceffmpeg at gmail.com
Mon Sep 18 17:33:01 EEST 2017

2017-09-18 7:54 GMT+02:00 Clément Bœsch <u at pkh.me>:
> On Mon, Sep 18, 2017 at 03:55:12AM +0200, Carl Eugen Hoyos wrote:
>> 2017-09-18 3:47 GMT+02:00 James Almer <jamrial at gmail.com>:
>> > On 9/17/2017 10:37 PM, Carl Eugen Hoyos wrote:
>> >> Hi!
>> >>
>> >> Attached patch fixes several warnings when compiling libavfilter with
>> >> current gcc.
>> >>
>> >> Please comment, Carl Eugen
>> >
>> > IMO, it would be better if we instead rename all the cases of "main"
>> > used across the codebase.
>> No strong opinion here, I would prefer if the warning were silenced.
> I'm with James on this one, it's easy and harmless to fix, so I think
> we should do that instead.

Sorry for being unclear:
I would just like to silence the warnings currently shown when
compiling FFmpeg, I do not care how they are silenced, I
made a suggestion that I thought would have less impact and
less discussion. ("Where in the specification is it written that
a variable must not be called 'main'?")

Sorry, Carl Eugen

More information about the ffmpeg-devel mailing list