[FFmpeg-devel] [PATCH v2] lavd/decklink_common: Fix error caused by -Werror=missing-prototypes
Michael Niedermayer
michael at niedermayer.cc
Mon Jun 27 11:07:37 CEST 2016
On Sun, Jun 26, 2016 at 09:00:58PM -0400, Richard Kern wrote:
>
> > On Jun 25, 2016, at 3:16 PM, Michael Niedermayer <michael at niedermayer.cc> wrote:
> >
> > On Sat, Jun 25, 2016 at 05:29:56PM +0000, Carl Eugen Hoyos wrote:
> >> Michael Niedermayer <michael <at> niedermayer.cc> writes:
> >>
> >>> why does this happen ?
> >>
> >> I thought it happens because FFmpeg include third-party
> >> files that do not copmile with error=missing-prototypes.
> >
> > but why should they build with random "warning are error" flags ?
> > one cannot write headers that are guranteed to never trigger a warning
> > on any compiler.
> > and if one cannot and does not, -Werror* could not work unless it
> > has an exception for system / 3rd party stuff
>
> The error is being thrown when the location of the decklink headers being
> pulled in as user includes with -I.
i would assume the same happens with any header, i didnt try but
libc headers likely will also fail with sufficient pedant warning/error
if they are included as "user headers"
> Clang doesn’t support -i, and I couldn’t
> find an equivalent option to include as system headers. Am I missing
> something?
http://clang.llvm.org/docs/UsersManual.html#controlling-diagnostics-in-system-headers
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The real ebay dictionary, page 2
"100% positive feedback" - "All either got their money back or didnt complain"
"Best seller ever, very honest" - "Seller refunded buyer after failed scam"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160627/2fdb00ae/attachment.sig>
More information about the ffmpeg-devel
mailing list