Revert "commonlib/endian: Silence GCC -Warray-bounds false positives"
This reverts commit 668ea97075.
Let's just keep using --param=min-pagesize=1024 in xcompile to sweep
the -Warray-bounds warnings under the rug in the coreboot tree.
Change-Id: I0f76c27bcbaac9d0927160fcab9cbf9aaefa9095
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/89915
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
66039a61f1
commit
d8bcf242c6
1 changed files with 1 additions and 6 deletions
|
|
@ -7,11 +7,6 @@
|
|||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
/* GCC >= 12 triggers false positives (-Warray-bounds) on
|
||||
* deliberate low-level memory accesses here. */
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Warray-bounds"
|
||||
|
||||
/* Endian agnostic functions working on single byte. */
|
||||
|
||||
static inline uint8_t read_ble8(const void *src)
|
||||
|
|
@ -252,4 +247,4 @@ static inline void zero_n(void *dest, size_t n)
|
|||
memset(dest, 0, n);
|
||||
}
|
||||
|
||||
#endif /* _COMMONLIB_ENDIAN_H_ */
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue