diff mbox

[FFmpeg-devel,1/2] avresample: remove deprecated attribute from the AVAudioResampleContext struct

Message ID 20180104184116.3720-1-jamrial@gmail.com
State Accepted
Commit ded409b7c9c242df5954f582f7d8b180f9291793
Headers show

Commit Message

James Almer Jan. 4, 2018, 6:41 p.m. UTC
Having all the public functions marked as deprecated is enough.

This gets rid of a warning spam when compiling any file including
libavresample/avresample.h even when avresample is not enabled, like
it's the case with fftools/cmdutils.c

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavresample/avresample.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

James Almer Jan. 8, 2018, 2:21 p.m. UTC | #1
On 1/4/2018 3:41 PM, James Almer wrote:
> Having all the public functions marked as deprecated is enough.
> 
> This gets rid of a warning spam when compiling any file including
> libavresample/avresample.h even when avresample is not enabled, like
> it's the case with fftools/cmdutils.c
> 
> Signed-off-by: James Almer <jamrial@gmail.com>
> ---
>  libavresample/avresample.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavresample/avresample.h b/libavresample/avresample.h
> index 440e1a16e7..5ac9adb44b 100644
> --- a/libavresample/avresample.h
> +++ b/libavresample/avresample.h
> @@ -103,7 +103,7 @@
>  
>  #define AVRESAMPLE_MAX_CHANNELS 32
>  
> -typedef attribute_deprecated struct AVAudioResampleContext AVAudioResampleContext;
> +typedef struct AVAudioResampleContext AVAudioResampleContext;
>  
>  /**
>   * @deprecated use libswresample

Will push this tonight.
diff mbox

Patch

diff --git a/libavresample/avresample.h b/libavresample/avresample.h
index 440e1a16e7..5ac9adb44b 100644
--- a/libavresample/avresample.h
+++ b/libavresample/avresample.h
@@ -103,7 +103,7 @@ 
 
 #define AVRESAMPLE_MAX_CHANNELS 32
 
-typedef attribute_deprecated struct AVAudioResampleContext AVAudioResampleContext;
+typedef struct AVAudioResampleContext AVAudioResampleContext;
 
 /**
  * @deprecated use libswresample