summaryrefslogtreecommitdiff
path: root/src/fundamental
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-06-03 09:32:02 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-06-03 19:09:54 +0900
commit38c87ca2ab96d085158485ecfc46c7cb6af0f166 (patch)
tree80f771b2aca03221d44dc62234c7ad7e85a4d505 /src/fundamental
parent311f57a4024e5c41a36bd400507c5433f1655185 (diff)
downloadsystemd-38c87ca2ab96d085158485ecfc46c7cb6af0f166.tar.gz
sha256: fix compilation on efi-ia32
/usr/bin/gcc -c ../src/fundamental/sha256.c -o src/boot/efi/sha256.c.o -Wno-format-signedness -Wno-missing-field-initializers -Wno-unused-parameter -Wdate-time -Wendif-labels -Werror=format=2 -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=overflow -Werror=override-init -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=undef -Wfloat-equal -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes -Wsuggest-attribute=noreturn -Wunused-function -Wwrite-strings -Wno-unused-result -fno-stack-protector -fno-strict-aliasing -fpic -fwide-exec-charset=UCS2 -Wall -Wextra -Wsign-compare -nostdlib -std=gnu99 -ffreestanding -fshort-wchar -fvisibility=hidden -isystem /usr/include/efi -isystem /usr/include/efi/ia32 -I /builddir/build/BUILD/systemd-stable-250.7/src/fundamental -DSD_BOOT -DGNU_EFI_USE_MS_ABI -include src/boot/efi/efi_config.h -include version.h -mno-sse -mno-mmx -flto -O2 -flto=auto ../src/fundamental/sha256.c: In function ‘sha256_finish_ctx’: ../src/fundamental/sha256.c:61:25: error: ‘false’ undeclared (first use in this function) 61 | # define UNALIGNED_P(p) false | ^~~~~ ../src/fundamental/sha256.c:136:21: note: in expansion of macro ‘UNALIGNED_P’ 136 | if (UNALIGNED_P(resbuf)) | ^~~~~~~~~~~ ../src/fundamental/sha256.c:32:1: note: ‘false’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? 31 | #include "sha256.h" +++ |+#include <stdbool.h> 32 | ...
Diffstat (limited to 'src/fundamental')
-rw-r--r--src/fundamental/sha256.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fundamental/sha256.c b/src/fundamental/sha256.c
index 67d83b5f1c..f089594796 100644
--- a/src/fundamental/sha256.c
+++ b/src/fundamental/sha256.c
@@ -60,7 +60,7 @@
# define UNALIGNED_P(p) (((size_t) p) % sizeof(uint32_t) != 0)
# endif
#else
-# define UNALIGNED_P(p) false
+# define UNALIGNED_P(p) sd_false
#endif
/* This array contains the bytes used to pad the buffer to the next