[PATCH] d3dcompiler: Use return value in read_dword.
Fixes warnings like on clang with MSVC target, where enums may be signed: dlls/d3dcompiler_43/reflection.c:1160:22: warning: passing 'D3D_PRIMITIVE *' (aka 'enum D3D_PRIMITIVE *') to parameter of type 'DWORD *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> --- dlls/d3dcompiler_43/d3dcompiler_private.h | 8 +- dlls/d3dcompiler_43/reflection.c | 144 +++++++++++----------- dlls/d3dcompiler_43/utils.c | 14 +-- 3 files changed, 84 insertions(+), 82 deletions(-)
Signed-off-by: Matteo Bruni <mbruni(a)codeweavers.com> --- Assuming that now the assignment doesn't cause a different warning somewhere :D
participants (2)
-
Jacek Caban -
Matteo Bruni