• Eric Pouech's avatar
    d3dx9/tests: Avoid a GCC warning (-Wsizeof-array-div). · c8689414
    Eric Pouech authored
    Follow GCC recommendations for getting rid of it.
    
    MingW/GCC (11.3, 12.x) complains with:
    /home/eric/work/wine/dlls/d3dx9_36/tests/effect.c: In function 'test_effect_parameter_value':
    /home/eric/work/wine/dlls/d3dx9_36/tests/effect.c:1838:71: warning: expression does not compute the number of elements in this array; element type is 'DWORD' {aka 'long unsigned int'}, not 'D3DXMATRIX' {aka 'struct _D3DMATRIX'} [-Wsizeof-array-div]
     1838 |             const D3DXMATRIX *matrix_pointer_array[sizeof(input_value)/sizeof(D3DXMATRIX)];
          |                                                                       ^
    /home/eric/work/wine/dlls/d3dx9_36/tests/effect.c:1838:71: note: add parentheses around the second 'sizeof' to silence this warning
    /home/eric/work/wine/dlls/d3dx9_36/tests/effect.c:1835:19: note: array 'input_value' declared here
     1835 |             DWORD input_value[EFFECT_PARAMETER_VALUE_ARRAY_SIZE];
          |                   ^~~~~~~~~~~
    Signed-off-by: 's avatarEric Pouech <eric.pouech@gmail.com>
    c8689414
Name
Last commit
Last update
..
tests Loading commit data...
Makefile.in Loading commit data...
animation.c Loading commit data...
core.c Loading commit data...
d3dx9_36.spec Loading commit data...
d3dx9_private.h Loading commit data...
effect.c Loading commit data...
font.c Loading commit data...
line.c Loading commit data...
main.c Loading commit data...
math.c Loading commit data...
mesh.c Loading commit data...
preshader.c Loading commit data...
render.c Loading commit data...
shader.c Loading commit data...
skin.c Loading commit data...
sprite.c Loading commit data...
surface.c Loading commit data...
texture.c Loading commit data...
txc_compress_dxtn.c Loading commit data...
txc_dxtn.h Loading commit data...
txc_fetch_dxtn.c Loading commit data...
util.c Loading commit data...
version.rc Loading commit data...
volume.c Loading commit data...
xfile.c Loading commit data...