mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-18 23:45:47 +01:00
Fix compiler warnings from texture.c
The patch fixes those 2 warnings below from texture.c
texture.c:205:81: warning: argument 3 of type 'const RColor[2]' with mismatched bound [-Warray-parameter=]
205 | WTexIGradient *wTextureMakeIGradient(WScreen *scr, int thickness1, const RColor colors1[2],
| ~~~~~~~~~~~~~^~~~~~~~~~
In file included from texture.c:33:
texture.h:165:53: note: previously declared as 'const RColor[]'
165 | WTexIGradient *wTextureMakeIGradient(WScreen*, int, const RColor[], int, const RColor[]);
| ^~~~~~~~~~~~~~
texture.c:206:67: warning: argument 5 of type 'const RColor[2]' with mismatched bound [-Warray-parameter=]
206 | int thickness2, const RColor colors2[2])
| ~~~~~~~~~~~~~^~~~~~~~~~
texture.h:165:74: note: previously declared as 'const RColor[]'
165 | WTexIGradient *wTextureMakeIGradient(WScreen*, int, const RColor[], int, const RColor[]);
|
This commit is contained in:
committed by
Carlos R. Mafra
parent
492b22d975
commit
82ad19d420
@@ -202,8 +202,8 @@ WTexGradient *wTextureMakeGradient(WScreen *scr, int style, const RColor *from,
|
|||||||
return texture;
|
return texture;
|
||||||
}
|
}
|
||||||
|
|
||||||
WTexIGradient *wTextureMakeIGradient(WScreen *scr, int thickness1, const RColor colors1[2],
|
WTexIGradient *wTextureMakeIGradient(WScreen *scr, int thickness1, const RColor colors1[],
|
||||||
int thickness2, const RColor colors2[2])
|
int thickness2, const RColor colors2[])
|
||||||
{
|
{
|
||||||
WTexIGradient *texture;
|
WTexIGradient *texture;
|
||||||
XGCValues gcv;
|
XGCValues gcv;
|
||||||
|
|||||||
Reference in New Issue
Block a user