On 31/03/2017 19:35, Diego Biurrun wrote:
> Silences a bunch of "statement with no effect" warnings with threads disabled.
> ---
> 
> Now with stub functions, should be more correct.
> 
>  libavutil/thread.h | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/libavutil/thread.h b/libavutil/thread.h
> index cf0fbdd..ac76bb8 100644
> --- a/libavutil/thread.h
> +++ b/libavutil/thread.h
> @@ -48,10 +48,10 @@
>  
>  #define AVMutex char
>  
> -#define ff_mutex_init(mutex, attr) (0)
> -#define ff_mutex_lock(mutex) (0)
> -#define ff_mutex_unlock(mutex) (0)
> -#define ff_mutex_destroy(mutex) (0)
> +static inline int ff_mutex_init(AVMutex *mutex, const void *attr){ return 0; 
> }
> +static inline int ff_mutex_lock(AVMutex *mutex){ return 0; }
> +static inline int ff_mutex_unlock(AVMutex *mutex){ return 0; }
> +static inline int ff_mutex_destroy(AVMutex *mutex){ return 0; }
>  
>  #define AVOnce char
>  #define AV_ONCE_INIT 0
> 

Ok.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to