boot: only use __builtin_object_size with -O>0
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 16 Nov 2022 18:46:41 +0000 (19:46 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 17 Nov 2022 11:23:17 +0000 (12:23 +0100)
commit1a2b1e10bdbdc0ed5e2bb4168b63a3b16f9d1848
treed9f17854ec6b240e5853df75d9f98537e34c36b2
parent5d29d07b342397a8ecc4bea96f53595a03dd94f1
boot: only use __builtin_object_size with -O>0

__builtin_object_size() returns -1 with -O0, so disable this and warn
about it instead.
src/boot/efi/util.h