implicit declaration of function
warning: implicit declaration of function 'app_create_dialog'
包含函数’app_create_dialog’定义的头文件解决警告。
如果没有声明头文件,可以将函数extern声明一下。
unused variable
warning: unused variable 'buf'
删除不使用的变量
initialization discards qualifiers from pointer target type
xx.c: In function 'cmm_cascam_create_dialog1':
xx.c:95:26: warning: initialization discards qualifiers from pointer target type
添加类型强制转换
pointer targets in return differ in signedness
xx.c: In function 'cmm_ca_get_notice_str':
xx.c:58:5: warning: pointer targets in return differ in signedness
数据类型不匹配,强制转换
assignment discards qualifiers from pointer target type
ca/common_menu/cmm_cascam_dialog3.c: In function '_create_dialog_check':
ca/common_menu/cmm_cascam_dialog3.c:150:17: warning: assignment discards qualifiers from pointer target type
强制转换解决
defined but not used
x.c:59:12: warning: '_mutex_delete' defined but not used
删除无用代码
control reaches end of non-void function
module/cascam/cas/thinew/adapter/tnt_demux.c: In function '_nit_set_equal_filter':
module/cascam/cas/thinew/adapter/tnt_demux.c:600:1: warning: control reaches end of non-void function
添加
return ret;
pointer targets in passing argument 1 of ‘cascam_strlen’ differ in signedness
module/cascam/cas/thinew/adapter/tnt_baseinfo.c: In function '_get_basic_information':
module/cascam/cas/thinew/adapter/tnt_baseinfo.c:45:9: warning: pointer targets in passing argument 1 of 'cascam_strlen' differ in signedness
module/cascam/cas/thinew/adapter/../../../include/cascam_os.h:61:14: note: expected 'char *' but argument is of type 'unsigned char *'
形参与实参类型不匹配,强制转换
warning: missing braces around initializer
module/cascam/adapter/cascam_osd_adapter.c: In function 'cascam_osd_pop_dialog5':
module/cascam/adapter/cascam_osd_adapter.c:295:5: warning: missing braces around initializer
module/cascam/adapter/cascam_osd_adapter.c:295:5: warning: (near initialization for 'para.title')
初始化大括号不明确,内部加上一个大括号,二维数组初始化。
may be used uninitialized in this function
初始化变量