From cfdaff3f7083a2d9ba7c9d7325232074746719a8 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sun, 2 Nov 2025 07:59:25 +0100 Subject: [PATCH] commonlib/endian: Restore -Warray-bounds at the end of file commit 668ea970 ("commonlib/endian: Silence GCC -Warray-bounds false positives") added `#pragma GCC diagnostic ignored "-Warray-bounds"` but forgot to restore the diagnostic state at the end of the file. Change-Id: I41b38758ce862490777ede63ff92d95d6ba21521 Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/89867 Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/commonlib/include/commonlib/endian.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commonlib/include/commonlib/endian.h b/src/commonlib/include/commonlib/endian.h index 24b10826f4..114d1bd469 100644 --- a/src/commonlib/include/commonlib/endian.h +++ b/src/commonlib/include/commonlib/endian.h @@ -252,4 +252,5 @@ static inline void zero_n(void *dest, size_t n) memset(dest, 0, n); } +#pragma GCC diagnostic pop /* restore -Warray-bounds */ #endif /* _COMMONLIB_ENDIAN_H_ */