From f9d25189faa9e91fdf373c93d13866ba2efde20b Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 13 Apr 2025 11:29:05 -0700 Subject: [PATCH] xfree86: make modeline2c.awk put a newline at the end of xf86DefModeSet.c Clears warning from clang 19.1.7: hw/xfree86/common/xf86DefModeSet.c:288:62: warning: no newline at end of file [-Wnewline-eof] 288 | const int xf86NumDefaultModes = ARRAY_SIZE(xf86DefaultModes); | ^ Fixes: 3bf7ff703 ("Size xf86DefaultModes explicitly.") Signed-off-by: Alan Coopersmith Part-of: --- hw/xfree86/common/modeline2c.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/common/modeline2c.awk b/hw/xfree86/common/modeline2c.awk index 3c9f602d1..4900d5a44 100644 --- a/hw/xfree86/common/modeline2c.awk +++ b/hw/xfree86/common/modeline2c.awk @@ -89,5 +89,5 @@ BEGIN { END { print "};" - printf "const int xf86NumDefaultModes = ARRAY_SIZE(xf86DefaultModes);" + print "const int xf86NumDefaultModes = ARRAY_SIZE(xf86DefaultModes);" }