Fix compiler warnings from texture.c v2
commit1d8b38b6e0f96280c7107a94ab3c03e0925896cd
authorDavid Maciejak <david.maciejak@gmail.com>
Sat, 25 Feb 2023 04:55:51 +0000 (25 12:55 +0800)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 25 Feb 2023 13:31:42 +0000 (25 13:31 +0000)
tree168a6413aeccb9705083f68aee9bc226ee414709
parent82ad19d420d7776444e9a82deb9b5043f5ae6629
Fix compiler warnings from texture.c v2

The patch fixes those 2 warnings below from texture.c.
It reverts the previous v1 patch and fixes the compiler warning
by updating the texture.h wTextureMakeIGradient header instead.

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[]);
      |
src/texture.c
src/texture.h