Skip to content
Snippets Groups Projects

fix calloc warning

Open Rudi Heitbaum requested to merge heitbaum/libaacs:calloc into master

The following warning occurs with gcc-14.2.0

../src/libaacs/unit_key.c: In function '_assign_titles': ../src/libaacs/unit_key.c:123:40: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 123 | uk->title_cps_unit = calloc(sizeof(uint16_t), num_titles + 2); | ^~~~~~~~ ../src/libaacs/unit_key.c:123:40: note: earlier argument should specify number of elements, later size of each element

Merge request reports

Members who can merge are allowed to add commits.

Pipeline #519480 failed

Pipeline failed for 9581216e on heitbaum:calloc

Approval is optional
Ready to merge by members who can write to the target branch.
  • 1 commit will be added to master.
  • Source branch will be deleted.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading