Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test code: fix wrong order in calloc call (-Wcalloc-transposed-args)
The calloc API is void* calloc(size_t num, size_t size); gcc14 added a warning when usign sizeof(.) for the first argument, e.g., calloc(sizeof(sk_t), 1) generates a warning as it likely should be calloc(1, sizeof(sk_t)). MAYO-C/apps/example.c: In function ‘example_mayo’: MAYO-C/apps/example.c:34:31: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args] 34 | sk_t *esk = calloc(sizeof(sk_t), 1); This commit fixes those warnings by swapping the arguments.
- Loading branch information