This triggers a bunch of warnings that need to be fixed.

Signed-off-by: Ganesh Ajjanagadde <gajjanaga...@gmail.com>
---
 libavdevice/avdevice.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libavdevice/avdevice.h b/libavdevice/avdevice.h
index 6b0446c..23611e6 100644
--- a/libavdevice/avdevice.h
+++ b/libavdevice/avdevice.h
@@ -302,6 +302,7 @@ enum AVDevToAppMessageType {
  * @return >= 0 on success, negative on error.
  *         AVERROR(ENOSYS) when device doesn't implement handler of the 
message.
  */
+av_warn_unused_result
 int avdevice_app_to_dev_control_message(struct AVFormatContext *s,
                                         enum AVAppToDevMessageType type,
                                         void *data, size_t data_size);
@@ -316,6 +317,7 @@ int avdevice_app_to_dev_control_message(struct 
AVFormatContext *s,
  * @return >= 0 on success, negative on error.
  *         AVERROR(ENOSYS) when application doesn't implement handler of the 
message.
  */
+av_warn_unused_result
 int avdevice_dev_to_app_control_message(struct AVFormatContext *s,
                                         enum AVDevToAppMessageType type,
                                         void *data, size_t data_size);
@@ -434,6 +436,7 @@ extern const AVOption av_device_capabilities[];
  *
  * @return >= 0 on success, negative otherwise.
  */
+av_warn_unused_result
 int avdevice_capabilities_create(AVDeviceCapabilitiesQuery **caps, 
AVFormatContext *s,
                                  AVDictionary **device_options);
 
@@ -475,6 +478,7 @@ typedef struct AVDeviceInfoList {
  * @param[out] device_list list of autodetected devices.
  * @return count of autodetected devices, negative on error.
  */
+av_warn_unused_result
 int avdevice_list_devices(struct AVFormatContext *s, AVDeviceInfoList 
**device_list);
 
 /**
@@ -501,8 +505,10 @@ void avdevice_free_list_devices(AVDeviceInfoList 
**device_list);
  * @return count of autodetected devices, negative on error.
  * @note device argument takes precedence over device_name when both are set.
  */
+av_warn_unused_result
 int avdevice_list_input_sources(struct AVInputFormat *device, const char 
*device_name,
                                 AVDictionary *device_options, AVDeviceInfoList 
**device_list);
+av_warn_unused_result
 int avdevice_list_output_sinks(struct AVOutputFormat *device, const char 
*device_name,
                                AVDictionary *device_options, AVDeviceInfoList 
**device_list);
 
-- 
2.6.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to