summaryrefslogtreecommitdiff
path: root/lib/variables.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2019-05-13 16:34:35 -0400
committerPeter Jones <pjones@redhat.com>2020-07-23 20:52:12 -0400
commit2cbf56b82a5102777b37c4f7f47c8cf058cea027 (patch)
tree7acc9097a20ff9c8e5d5bc344850c431a0170dad /lib/variables.c
parentb5e10f70c7a495dc1788e3604803ee633f1e5f76 (diff)
downloadefi-boot-shim-2cbf56b82a5102777b37c4f7f47c8cf058cea027.tar.gz
efi-boot-shim-2cbf56b82a5102777b37c4f7f47c8cf058cea027.zip
Work around stuff -Waddress-of-packed-member finds.
In MokManager we get a lot of these: ../src/MokManager.c:1063:19: error: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Werror=address-of-packed-member] 1063 | if (CompareGuid(&(list[i].Type), &X509_GUID) == 0) | ^~~~~~~~~~~~~~~ The reason for this is that gnu-efi takes EFI_GUID * as its argument instead of VOID *, and there's nothing telling the compiler that it doesn't have alignment constraints on the input, so the compiler wants it to have 16-byte alignment. Just use CompareMem() for these, as that's all CompareGuid is calling anyway. Signed-off-by: Peter Jones <pjones@redhat.com> Upstream-commit-id: 08c14376b59
Diffstat (limited to 'lib/variables.c')
0 files changed, 0 insertions, 0 deletions