1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-30 10:22:34 +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:
David Maciejak
2023-02-24 19:24:45 +08:00
committed by Carlos R. Mafra
parent 492b22d975
commit 82ad19d420

View File

@@ -202,8 +202,8 @@ WTexGradient *wTextureMakeGradient(WScreen *scr, int style, const RColor *from,
return texture;
}
WTexIGradient *wTextureMakeIGradient(WScreen *scr, int thickness1, const RColor colors1[2],
int thickness2, const RColor colors2[2])
WTexIGradient *wTextureMakeIGradient(WScreen *scr, int thickness1, const RColor colors1[],
int thickness2, const RColor colors2[])
{
WTexIGradient *texture;
XGCValues gcv;