From be9f67339a19a6649eab52aa2e0c8971cd9b4727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Mon, 7 Nov 2016 16:34:37 +0900 Subject: Reindent code in radeon_dri2_create_buffer2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes warning about misleading indentation from recent versions of gcc: ../../src/radeon_dri2.c: In function ‘radeon_dri2_create_buffer2’: ../../src/radeon_dri2.c:224:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (flags & RADEON_CREATE_PIXMAP_TILING_MACRO) ^~ ../../src/radeon_dri2.c:227:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ if (aligned_width == front_width) ^~ No functional change intended. Reviewed-by: Alex Deucher --- src/radeon_dri2.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c index 1206b2ae..81126706 100644 --- a/src/radeon_dri2.c +++ b/src/radeon_dri2.c @@ -224,14 +224,14 @@ radeon_dri2_create_buffer2(ScreenPtr pScreen, if (flags & RADEON_CREATE_PIXMAP_TILING_MACRO) tiling |= RADEON_TILING_MACRO; - if (aligned_width == front_width) - aligned_width = pScrn->virtualX; - - pixmap = (*pScreen->CreatePixmap)(pScreen, - aligned_width, - height, - depth, - flags | RADEON_CREATE_PIXMAP_DRI2); + if (aligned_width == front_width) + aligned_width = pScrn->virtualX; + + pixmap = (*pScreen->CreatePixmap)(pScreen, + aligned_width, + height, + depth, + flags | RADEON_CREATE_PIXMAP_DRI2); } buffers = calloc(1, sizeof *buffers); -- cgit v1.2.3