summaryrefslogtreecommitdiff
path: root/lib/variables.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2017-09-29 11:01:10 -0400
committerPeter Jones <pjones@redhat.com>2017-09-29 11:10:32 -0400
commitdca65ca25417c16f89024d4d2a3619a0967139c4 (patch)
tree936040798ac840a483b0a1cd4b7ae9ad31201a55 /lib/variables.c
parentd8f4773408b5ba2a3dabccdfa36f68ac337eb155 (diff)
downloadefi-boot-shim-dca65ca25417c16f89024d4d2a3619a0967139c4.tar.gz
efi-boot-shim-dca65ca25417c16f89024d4d2a3619a0967139c4.zip
Make shim_cert.h able to be included more safely.
If you build with ENABLE_SHIM_CERT=1, the include chain right now winds up meaning shim_cert is defined in a header that gets included in netboot.c as well, which never uses it: In file included from shim.h:125:0, from netboot.c:36: shim_cert.h:1:14: error: ‘shim_cert’ defined but not used [-Werror=unused-variable] static UINT8 shim_cert[] = { ^~~~~~~~~ cc1: all warnings being treated as errors So make that okay by adding __attribute__((__unused__)) to the variable decl. Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'lib/variables.c')
0 files changed, 0 insertions, 0 deletions