avutil/audio_fifo: add av_warn_unused_result
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Thu, 15 Oct 2015 23:24:14 +0000 (19:24 -0400)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Thu, 29 Oct 2015 03:05:31 +0000 (23:05 -0400)
commitdd367495578d406ab6456fca7e2a0c4a5bc50b0a
treebc83afaf2b5292938b395aa6c29cda0e5774f511
parent63fca9df9c6f236c16a5ac0b60e73cb0e7669b2e
avutil/audio_fifo: add av_warn_unused_result

This one should not trigger any warnings, but will be useful for future
robustness.

Strictly speaking, one could check the size after the call by examining
the structure instead of the return value. Such a use case is highly
unusual, and this commit may be easily reverted if there is a legitimate
need of such use.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
libavutil/audio_fifo.h