Open thesamesam opened 9 months ago
Thanks @thesamesam . Can you please try to fix the commisery error as well ?
fix(install): fix -Walloc-size
^^^
commit_message:1:15: note: prefer using the imperative for verbs```
This issue is being marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. If this is still an issue in the latest release of Dracut and you would like to keep it open please comment on this issue within the next 7 days. Thank you for your contributions.
GCC 14 introduces a new -Walloc-size included in -Wextra which gives:
malloc0 is a macro deifned by Dracut (and systemd, see below):
The calloc prototype is:
So, just swap the number of members and size arguments to match the prototype, as we're initialising 1 struct of size
sizeof(...)
. GCC then sees we're not doing anything wrong.This was fixed upstream in systemd in commit f80bb1f7eaf31476a44c2093d3ee02aba817a0b0 [0].
[0] https://github.com/systemd/systemd/commit/f80bb1f7eaf31476a44c2093d3ee02aba817a0b0
Changes
Fix
malloc0
macro to comply withcalloc
prototype.Checklist
Fixes #