Skip to content

Fix incompatible pointer type warning by typecast#8

Open
852866031 wants to merge 1 commit intounikraft:stagingfrom
852866031:Team6
Open

Fix incompatible pointer type warning by typecast#8
852866031 wants to merge 1 commit intounikraft:stagingfrom
852866031:Team6

Conversation

@852866031
Copy link
Copy Markdown

This PR is a part of work for Unikraft Lyon Hackathon.

When building app-nginx, the warning below occurred

/home/ubuntu/workdir/libs/lib-pthread-embedded/attributes.c: In function ‘pthread_setname_np’: /home/ubuntu/workdir/libs/lib-pthread-embedded/attributes.c:122:13: warning: assignment to ‘struct uk_thread *’ from incompatible pointer type ‘pte_osThreadHandle’ {aka ‘struct pte_thread_data *’} [-Wincompatible-pointer-types]

To fix it we add typecast expressions on the corresponding statements

Copy link
Copy Markdown

@razvand razvand left a comment

Choose a reason for hiding this comment

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

Thanks, @852866031 , it looks good to me.

Copy link
Copy Markdown

@ouss-ch ouss-ch left a comment

Choose a reason for hiding this comment

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

Looks good. Good job!
Reviewed by Oussama "ouss-chayeb@gmail.com"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🧊 Icebox

Development

Successfully merging this pull request may close these issues.

3 participants