[PATCH 2/3] d3d11/tests: Fix a gcc -Wmisleading-indentation warning.
Stefan Dösinger
stefan at codeweavers.com
Thu Aug 5 12:56:57 CDT 2021
Because the ID3D11Asynchronous_Release(query) line is indented 4 spaces more
than the if condition gcc thinks the code is misleading.
Signed-off-by: Stefan Dösinger <stefan at codeweavers.com>
---
../../src/wine/dlls/d3d11/tests/d3d11.c: In function 'test_occlusion_query':
../../src/wine/dlls/d3d11/tests/d3d11.c:5857:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
5857 | if (0)
| ^~
../../src/wine/dlls/d3d11/tests/d3d11.c:5861:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
5861 | ID3D11Asynchronous_Release(query);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
$ i686-w64-mingw32-gcc --version
i686-w64-mingw32-gcc (Gentoo 11.2.0 p1) 11.2.0
---
dlls/d3d11/tests/d3d11.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/dlls/d3d11/tests/d3d11.c b/dlls/d3d11/tests/d3d11.c
index 1f797da1646..e08408b4884 100644
--- a/dlls/d3d11/tests/d3d11.c
+++ b/dlls/d3d11/tests/d3d11.c
@@ -5856,9 +5856,11 @@ static void test_occlusion_query(void)
get_query_data(context, query, &data, sizeof(data));
/* This test occasionally succeeds with CSMT enabled because of a race condition. */
-if (0)
- todo_wine ok(data.dword[0] == 0x1000 && !data.dword[1],
- "Got unexpected query result 0x%08x%08x.\n", data.dword[1], data.dword[0]);
+ if (0)
+ {
+ todo_wine ok(data.dword[0] == 0x1000 && !data.dword[1],
+ "Got unexpected query result 0x%08x%08x.\n", data.dword[1], data.dword[0]);
+ }
ID3D11Asynchronous_Release(query);
ID3D11RenderTargetView_Release(rtv);
--
2.31.1
More information about the wine-devel
mailing list