* [PATCH xf86-video-ati] Reindent code in radeon_dri2_create_buffer2
@ 2016-11-09 7:04 Michel Dänzer
[not found] ` <20161109070454.23007-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Michel Dänzer @ 2016-11-09 7:04 UTC (permalink / raw)
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
From: Michel Dänzer <michel.daenzer@amd.com>
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.
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
---
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 1206b2a..8112670 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);
--
2.10.2
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 2+ messages in thread[parent not found: <20161109070454.23007-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org>]
* RE: [PATCH xf86-video-ati] Reindent code in radeon_dri2_create_buffer2 [not found] ` <20161109070454.23007-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org> @ 2016-11-09 13:48 ` Deucher, Alexander 0 siblings, 0 replies; 2+ messages in thread From: Deucher, Alexander @ 2016-11-09 13:48 UTC (permalink / raw) To: 'Michel Dänzer', amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org > -----Original Message----- > From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf > Of Michel Dänzer > Sent: Wednesday, November 09, 2016 2:05 AM > To: amd-gfx@lists.freedesktop.org > Subject: [PATCH xf86-video-ati] Reindent code in > radeon_dri2_create_buffer2 > > From: Michel Dänzer <michel.daenzer@amd.com> > > 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. > > Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> > --- > 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 1206b2a..8112670 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); > -- > 2.10.2 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-09 13:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-09 7:04 [PATCH xf86-video-ati] Reindent code in radeon_dri2_create_buffer2 Michel Dänzer
[not found] ` <20161109070454.23007-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
2016-11-09 13:48 ` Deucher, Alexander
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.