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 build with python 3.11 and clang16 compiler #330

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

Conversation

kraj
Copy link

@kraj kraj commented Feb 14, 2023

Please describe the purpose of this pull request

Building with latest yocto which uses python 3.11 and clang 16 compiler build fails

Checklist

@github-actions
Copy link

This PR has been marked as stale and will be automatically closed in 7 days.

@github-actions github-actions bot added the Stale label May 15, 2023
Newer compilers e.g. clang16 can detect signature mismatches in the
functions used as function pointers, therefore correct the function
prototypes and ensure the typedefs they use are available at the time of
use

Fixes
lib/hal/atca_hal.c:310:33: error: incompatible function pointer types       assigning to 'ATCA_STATUS (*)(ATCAIface, ATCAIfaceCfg *)' (aka 'ATCA_STATUS (*)(struct atca_iface *, ATCAIfaceCfg *)') from 'ATCA_STATUS (*)(void *, void *)' [-Wincompatible-function-      pointer-types]
                 (*hal)->halinit = cfg->atcacustom.halinit;
                                 ^ ~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants