dzn: Fix printf() format in dxgi_get_factory() error message
Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17250>
This commit is contained in:
@@ -273,7 +273,7 @@ dxgi_get_factory(bool debug)
|
||||
IDXGIFactory4 *factory;
|
||||
HRESULT hr = CreateDXGIFactory2(flags, &IID_IDXGIFactory4, (void **)&factory);
|
||||
if (FAILED(hr)) {
|
||||
mesa_loge("CreateDXGIFactory2 failed: %08x\n", hr);
|
||||
mesa_loge("CreateDXGIFactory2 failed: %08x\n", (int32_t)hr);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -66,6 +66,7 @@ if cc.get_argument_syntax() != 'msvc'
|
||||
'-Werror=unused-variable',
|
||||
'-Werror=unused-but-set-variable',
|
||||
'-Werror=unused-value',
|
||||
'-Werror=format',
|
||||
]
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user