https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4130f0b1c5f869614c718…
commit 4130f0b1c5f869614c71818bb7c30447d894afc8
Author: Joachim Henze <Joachim.Henze(a)reactos.org>
AuthorDate: Wed Jun 23 21:37:53 2021 +0200
Commit: Joachim Henze <Joachim.Henze(a)reactos.org>
CommitDate: Wed Jun 23 21:37:53 2021 +0200
[WIN32K] CreateDIBPalette addendum to #3758 CORE-17626
Fix compilation on older GCC4.7.2 toolchain
to not warn about universal zero initializer.
See
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119
https://stackoverflow.com/questions/13746033/how-to-repair-warning-missing-…
---
win32ss/gdi/ntgdi/dibobj.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/win32ss/gdi/ntgdi/dibobj.c b/win32ss/gdi/ntgdi/dibobj.c
index acd8da28d23..c99cabe33c9 100644
--- a/win32ss/gdi/ntgdi/dibobj.c
+++ b/win32ss/gdi/ntgdi/dibobj.c
@@ -127,7 +127,7 @@ CreateDIBPalette(
{
/* The colors are an array of RGBQUAD values */
RGBQUAD *prgb = (RGBQUAD*)((PCHAR)pbmi + pbmi->bmiHeader.biSize);
- RGBQUAD colors[256] = {0};
+ RGBQUAD colors[256] = {{0}};
// FIXME: do we need to handle PALETTEINDEX / PALETTERGB macro?