From 63ebb79f9ab43f4ca0597d4f499fb6d680a55fab Mon Sep 17 00:00:00 2001 From: AJR Date: Fri, 22 Dec 2023 09:29:00 -0500 Subject: [PATCH] video/mc6847.cpp: Fix clang error: variable 'x' is used uninitialized whenever its declaration is reached [-Werror,-Wsometimes-uninitialized] --- src/devices/video/mc6847.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/video/mc6847.cpp b/src/devices/video/mc6847.cpp index 84597c33c11..ffdead98c36 100644 --- a/src/devices/video/mc6847.cpp +++ b/src/devices/video/mc6847.cpp @@ -988,7 +988,7 @@ uint32_t mc6847_base_device::screen_update(screen_device &screen, bitmap_rgb32 & /* body */ const int width = m_data[y].m_sample_count; pixel_t *RESTRICT pixels = bitmap_addr(bitmap, base_y + y, base_x); - for (int x; x < width; ) + for (int x = 0; x < width; ) { /* determine how many bytes exist for which the mode is identical */ int x2;