projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c596fd3
)
[WIN32K] CreateDIBPalette addendum to #3758 CORE-17626
author
Joachim Henze
<Joachim.Henze@reactos.org>
Wed, 23 Jun 2021 19:37:53 +0000
(21:37 +0200)
committer
Joachim Henze
<Joachim.Henze@reactos.org>
Wed, 23 Jun 2021 19:37:53 +0000
(21:37 +0200)
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-braces-around-initializer
win32ss/gdi/ntgdi/dibobj.c
patch
|
blob
|
history
diff --git
a/win32ss/gdi/ntgdi/dibobj.c
b/win32ss/gdi/ntgdi/dibobj.c
index
acd8da2
..
c99cabe
100644
(file)
--- 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?