Reported by: GCC 14 -Wcalloc-transposed-args
Details
Details
- Reviewers
imp emaste rlibby - Commits
- rGdb9ce08054dc: elftoolchain: Consistently use item count as the first argument to calloc
rG360c47b956d8: elftoolchain: Consistently use item count as the first argument to calloc
rGb73445a32f8a: elftoolchain: Consistently use item count as the first argument to calloc
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 58689 Build 55577: arc lint + arc unit
Event Timeline
Comment Actions
Note that this was the only calloc instance in all of elftc that GCC warned about. All the others (even in this file) were already consistent with the number being first.
Comment Actions
It's fine in elftoolchain - we are the primary consumer and either jkoshy or I can make the change upstream.