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

Commits on May 15, 2023

  1. atca_iface.h: Fix function mismatches in function pointers

    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 <[email protected]>
    kraj committed May 15, 2023
    Configuration menu
    Copy the full SHA
    1ed585c View commit details
    Browse the repository at this point in the history