Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/84173?usp=email )
Change subject: nb/intel/gm45: Fix Wunterminated-string-initialization error ......................................................................
nb/intel/gm45: Fix Wunterminated-string-initialization error
This fixes following errors: src/mainboard/lenovo/t400/blc.c:15:10: error: initializer-string for array of 'char' is too long [-Werror=unterminated-string-initialization] 15 | {"LP141WX3-TLR1", 110}, | ^~~~~~~~~~~~~~~ src/mainboard/lenovo/t400/blc.c:16:10: error: initializer-string for array of 'char' is too long [-Werror=unterminated-string-initialization] 16 | {"LP141WX5-TLP2", 450}, | ^~~~~~~~~~~~~~~ src/mainboard/lenovo/t400/blc.c:17:10: error: initializer-string for array of 'char' is too long [-Werror=unterminated-string-initialization] 17 | {"LTN141AT12401", 450}, | ^~~~~~~~~~~~~~~ src/mainboard/lenovo/t400/blc.c:21:10: error: initializer-string for array of 'char' is too long [-Werror=unterminated-string-initialization] 21 | {"LP154W02-TL06", 110}, | ^~~~~~~~~~~~~~~
Change-Id: I8b001225998002d4f4a093f0b83dca85c923d2fe Signed-off-by: Elyes Haouas ehaouas@noos.fr --- M src/northbridge/intel/gm45/gm45.h 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/73/84173/1
diff --git a/src/northbridge/intel/gm45/gm45.h b/src/northbridge/intel/gm45/gm45.h index 5d9ac56..64cb44d 100644 --- a/src/northbridge/intel/gm45/gm45.h +++ b/src/northbridge/intel/gm45/gm45.h @@ -441,7 +441,7 @@ void mb_post_raminit_setup(void); /* optional */
struct blc_pwm_t { - char ascii_string[13]; + char ascii_string[14]; int pwm_freq; /* In Hz */ }; int get_blc_values(const struct blc_pwm_t **entries);