[XDA-University] maksim198096:
Hi

How to fix this Error??

hardware/qcom/media/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp: In member function 'void omx_vdec::handle_extradata(OMX_BUFFERHEADERTYPE*)':

hardware/qcom/media/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp:8296:9: warning: format '%d' expects argument of type 'int', but argument 4 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]

hardware/qcom/media/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp:8296:9: warning: format '%d' expects argument of type 'int', but argument 5 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]

hardware/qcom/media/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp:8407:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]

hardware/qcom/media/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp: In member function 'OMX_ERRORTYPE omx_vdec::enable_extradata(OMX_U32, bool)':

hardware/qcom/media/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp:8437:3: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]

hardware/qcom/media/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp:8437:3: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]

hardware/qcom/media/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp: In member function 'void omx_vdec::print_debug_extradata(OMX_OTHER_EXTRADATATYPE*)':

hardware/qcom/media/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp:8526:23: warning: comparison between 'OMX_EXTRADATATYPE {aka enum OMX_EXTRADATATYPE}' and 'enum OMX_QCOM_EXTRADATATYPE' [-Wenum-compare]

hardware/qcom/media/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp:8540:28: warning: comparison between 'OMX_EXTRADATATYPE {aka enum OMX_EXTRADATATYPE}' and 'enum OMX_QCOM_EXTRADATATYPE' [-Wenum-compare]

hardware/qcom/media/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp:8561:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

hardware/qcom/media/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp: In member function 'OMX_ERRORTYPE omx_vdec::handle_demux_data(OMX_BUFFERHEADERTYPE*)':

hardware/qcom/media/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp:8813:5: warning: format '%d' expects argument of type 'int', but argument 4 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]

hardware/qcom/media/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp: In member function 'OMX_ERRORTYPE omx_vdec::allocate_color_convert_buf::allocate_buffers_color_convert(OMX_HANDLETYPE, OMX_BUFFERHEADERTYPE**, OMX_U32, OMX_PTR, OMX_U32)':

hardware/qcom/media/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp:9281:5: warning: format '%d' expects argument of type 'int', but argument 5 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]

hardware/qcom/media/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp:9297:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

hardware/qcom/media/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp: In member function 'OMX_ERRORTYPE omx_vdec::update_color_format(OMX_COLOR_FORMATTYPE)':

hardware/qcom/media/mm-video-legacy/vidc/vdec/src/omx_vdec.cpp:9421:12: warning: comparison between 'OMX_COLOR_FORMATTYPE {aka enum OMX_COLOR_FORMATTYPE}' and 'enum OMX_QCOM_COLOR_FORMATTYPE' [-Wenum-compare]

make: *** [/home/makx/aosp/cm11/out/target/product/presto/obj/SHARED_LIBRARIES/libOmxVdec_intermediates/src/omx_vdec.o] error 1