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 use of calloc() against GCC 14.1 directive -Wcalloc-transposed-args #6912

Merged
merged 2 commits into from
Jun 27, 2024

Commits on Jun 27, 2024

  1. core: arm: fix calloc() against GCC 14 -Wcalloc-transposed-args

    Fix calloc() calls against GCC 14 directive -Wcalloc-transposed-args that
    makes GCC to complain with an warning/error trace message like:
    
    warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
    
    No functional change.
    
    Signed-off-by: Etienne Carriere <[email protected]>
    Acked-by: Gatien Chevallier <[email protected]>
    Reviewed-by: Jerome Forissier <[email protected]>
    Reviewed-by: Jens Wiklander <[email protected]>
    etienne-lms committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    f066844 View commit details
    Browse the repository at this point in the history
  2. libtomcrypt: fix calloc() against GCC 14 -Wcalloc-transposed-args

    Fix use of XCALLOC() macro against GCC 14 directive
    -Wcalloc-transposed-args that makes GCC to complain with an warning/error
    trace message like:
    
    warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
    
    This change was proposed and merged in mainline libtomcrypt repository.
    
    No functional change.
    
    Link: libtom/libtomcrypt#647
    Signed-off-by: Etienne Carriere <[email protected]>
    Acked-by: Gatien Chevallier <[email protected]>
    Reviewed-by: Jerome Forissier <[email protected]>
    Reviewed-by: Jens Wiklander <[email protected]>
    etienne-lms committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    772aea1 View commit details
    Browse the repository at this point in the history