mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
GCC 15: Silence -Wunterminated-string-initialization
This is a new warning in GCC 15 that our code base triggers in many places. Silence it for the time being. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@ -87,7 +87,9 @@ component_test_gcc15_opt () {
|
||||
scripts/config.py full
|
||||
# Until https://github.com/Mbed-TLS/mbedtls/issues/9814 is fixed,
|
||||
# disable the new problematic optimization.
|
||||
test_build_opt 'full config' "/usr/local/gcc-15/bin/gcc-15 -fzero-init-padding-bits=unions" -O2
|
||||
# Also disable a warning that we don't yet comply to.
|
||||
make CC="/usr/local/gcc-15/bin/gcc-15" CFLAGS="-O2 -Wall -Wextra -Werror -fzero-init-padding-bits=unions -Wno-error=unterminated-string-initialization"
|
||||
make test
|
||||
}
|
||||
|
||||
component_test_gcc_earliest_opt () {
|
||||
|
Reference in New Issue
Block a user