Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incompatible pointer type warning by typecast #8

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

852866031
Copy link

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

@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

@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