diff options
| author | Jonas Witschel <diabonas@gmx.de> | 2019-09-05 10:39:37 +0200 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2020-07-23 20:53:24 -0400 |
| commit | d57e53f3bddc4bc7299b3d5efd5ba8c547e8dfa5 (patch) | |
| tree | aa2e3e8420ff73af38448922c796ab1fcef947f3 /lib/variables.c | |
| parent | 55163bc82c5179adb109c3d8b982c2689d68b4c9 (diff) | |
| download | efi-boot-shim-d57e53f3bddc4bc7299b3d5efd5ba8c547e8dfa5.tar.gz efi-boot-shim-d57e53f3bddc4bc7299b3d5efd5ba8c547e8dfa5.zip | |
MokManager: avoid -Werror=address-of-packed-member
When compiling with GCC 9, there are a couple of errors of the form
MokManager.c: In function ‘write_back_mok_list’:
MokManager.c:1056:19: error: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
1056 | if (CompareGuid(&(list[i].Type), &X509_GUID) == 0)
| ^~~~~~~~~~~~~~~
Copying the member of the packed struct to a temporary variable and
pointing to that variable solves the problem.
Upstream-commit-id: 58532e12e9a
Diffstat (limited to 'lib/variables.c')
0 files changed, 0 insertions, 0 deletions
