Skip to content

uadk: fix -Wmaybe-uninitialized and -Wsign-compare warnings - #772

Merged
Liulongfang merged 1 commit into
Linaro:masterfrom
Pancil-S:master
Sep 17, 2026
Merged

Liulongfang merged 1 commit into
Linaro:masterfrom
Pancil-S:master

Conversation

@Pancil-S

Copy link
Copy Markdown

Initialize ret to 0 in wd_ctx_param_init() to fix -Wmaybe-uninitialized warning. Change ret type from int to size_t in get_str_attr() to fix -Wsign-compare warning. Move sched_uninit and set_param to the end of struct wd_sched to maintain ABI compatibility.

Initialize ret to 0 in wd_ctx_param_init() to fix -Wmaybe-uninitialized
warning. Change ret type from int to size_t in get_str_attr() to fix
-Wsign-compare warning. Move sched_uninit and set_param to the end of
struct wd_sched to maintain ABI compatibility.

Signed-off-by: Junchong Pan <panjunchong@h-partners.com>
Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
@zhushuai12

Copy link
Copy Markdown

lgtm

1 similar comment
@IAMHCHCH

Copy link
Copy Markdown
Contributor

lgtm

@Liulongfang Liulongfang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@Liulongfang
Liulongfang merged commit 090b502 into Linaro:master Sep 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants