Henri Verbeet pushed to branch master at wine / vkd3d
Commits: 3376015d by Francisco Casas at 2025-06-26T15:55:58+02:00 vkd3d-shader/hlsl: Update the enum hlsl_sampler_dim comment.
- - - - - 96cd4cc9 by Francisco Casas at 2025-06-26T15:56:43+02:00 vkd3d-shader/ir: Avoid a compiler warning in vsir_block_list_init().
The following warning appears during compilation with gcc 15.1.1 20250425:
In function 'vsir_block_list_init', inlined from 'vsir_block_init' at vkd3d/libs/vkd3d-shader/ir.c:3821:5, inlined from 'vsir_cfg_init' at vkd3d/libs/vkd3d-shader/ir.c:4285:28: vkd3d/libs/vkd3d-shader/ir.c:3758:5: warning: 'memset' writing 24 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] 3758 | memset(list, 0, sizeof(*list)); | ^ In function 'vsir_cfg_init': lto1: note: destination object is likely at address zero
looking at the code in vsir_cfg_init() this seems like an spurious warning. Looking on the internet, these bogus warnings with memset() seem to be a common occurrence.
memset() is replaced with a zero value assignment to avoid this.
- - - - -
2 changed files:
- libs/vkd3d-shader/hlsl.h - libs/vkd3d-shader/ir.c
View it on GitLab: https://gitlab.winehq.org/wine/vkd3d/-/compare/3c469edc8e9d82012b2295014d7ba...