From cb08b324a4b6d063599f3ad2bd02bf81de32d5a2 Mon Sep 17 00:00:00 2001 From: juanvallejo Date: Tue, 27 Jun 2017 15:22:57 -0400 Subject: [PATCH] remove "deprecated-declarations" warnings --- avcodec/avcodec.go | 1 + avfilter/avfilter.go | 1 + avformat/avformat.go | 1 + avutil/avutil.go | 1 + 4 files changed, 4 insertions(+) diff --git a/avcodec/avcodec.go b/avcodec/avcodec.go index 4c5061f..d1eec98 100644 --- a/avcodec/avcodec.go +++ b/avcodec/avcodec.go @@ -119,6 +119,7 @@ package avcodec // int GO_AVCODEC_VERSION_MINOR = LIBAVCODEC_VERSION_MINOR; // int GO_AVCODEC_VERSION_MICRO = LIBAVCODEC_VERSION_MICRO; // +// #cgo CFLAGS: -Wno-deprecated-declarations // #cgo pkg-config: libavcodec libavutil import "C" diff --git a/avfilter/avfilter.go b/avfilter/avfilter.go index 4bf6275..0136dc9 100644 --- a/avfilter/avfilter.go +++ b/avfilter/avfilter.go @@ -30,6 +30,7 @@ package avfilter //#define GO_AVFILTER_AUTO_CONVERT_ALL ((unsigned)AVFILTER_AUTO_CONVERT_ALL) //#define GO_AVFILTER_AUTO_CONVERT_NONE ((unsigned)AVFILTER_AUTO_CONVERT_NONE) // +// #cgo CFLAGS: -Wno-deprecated-declarations //#cgo pkg-config: libavfilter libavutil import "C" diff --git a/avformat/avformat.go b/avformat/avformat.go index 27d27e6..47a6500 100644 --- a/avformat/avformat.go +++ b/avformat/avformat.go @@ -36,6 +36,7 @@ package avformat //typedef int (*AVFormatContextIOOpenCallback)(struct AVFormatContext *s, AVIOContext **pb, const char *url, int flags, AVDictionary **options); //typedef void (*AVFormatContextIOCloseCallback)(struct AVFormatContext *s, AVIOContext *pb); // +// #cgo CFLAGS: -Wno-deprecated-declarations // #cgo pkg-config: libavformat libavutil import "C" diff --git a/avutil/avutil.go b/avutil/avutil.go index a1ac31e..53e4e69 100644 --- a/avutil/avutil.go +++ b/avutil/avutil.go @@ -54,6 +54,7 @@ package avutil // return AVERROR(e); //} // +// #cgo CFLAGS: -Wno-deprecated-declarations // #cgo pkg-config: libavutil import "C"