[FFmpeg-devel] [PATCH v3] lavd/decklink_common: Fix error caused by -Werror=missing-prototypes
Roger Pack
rogerdpack2 at gmail.com
Mon Jun 27 05:03:35 CEST 2016
could you post a copy of the compile failure for reference?
On 6/26/16, Rick Kern <kernrj at gmail.com> wrote:
> decklink_common.cpp includes a .cpp file from the DeckLink API which fails
> to build because there are non-static functions in the included .cpp file.
> This disables the missing-prototypes error so the file can be included.
>
> Signed-off-by: Rick Kern <kernrj at gmail.com>
> ---
> libavdevice/Makefile | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/libavdevice/Makefile b/libavdevice/Makefile
> index 585827b..e281825 100644
> --- a/libavdevice/Makefile
> +++ b/libavdevice/Makefile
> @@ -19,6 +19,8 @@ OBJS-$(CONFIG_BKTR_INDEV) += bktr.o
> OBJS-$(CONFIG_CACA_OUTDEV) += caca.o
> OBJS-$(CONFIG_DECKLINK_OUTDEV) += decklink_enc.o decklink_enc_c.o
> decklink_common.o
> OBJS-$(CONFIG_DECKLINK_INDEV) += decklink_dec.o decklink_dec_c.o
> decklink_common.o
> +$(SUBDIR)decklink_common.o: CXXFLAGS += -Wno-error=missing-prototypes
> +
> OBJS-$(CONFIG_DSHOW_INDEV) += dshow_crossbar.o dshow.o
> dshow_enummediatypes.o \
> dshow_enumpins.o dshow_filter.o
> \
> dshow_pin.o dshow_common.o
> --
> 2.9.0
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
More information about the ffmpeg-devel
mailing list