Ticket #12766: 0018-accelerants-radeon-fix-gcc6-build.patch

File 0018-accelerants-radeon-fix-gcc6-build.patch, 1.6 KB (added by mt, 8 years ago)
  • src/add-ons/accelerants/radeon/Cursor.c

    From e537b8f24ced62fd91cceaeaede14da49248782d Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Thu, 5 May 2016 17:11:48 +0900
    Subject: [PATCH 18/24] accelerants/radeon: fix gcc6 build
    
    * Reindent source code, to fix gcc6
      '-Werror=misleading-indentation' warnings.
    ---
     src/add-ons/accelerants/radeon/Cursor.c  | 8 ++++----
     src/add-ons/accelerants/radeon/impactv.c | 4 ++--
     2 files changed, 6 insertions(+), 6 deletions(-)
    
    diff --git a/src/add-ons/accelerants/radeon/Cursor.c b/src/add-ons/accelerants/radeon/Cursor.c
    index f4f0bba..0e09752 100644
    a b void moveOneCursor( accelerator_info *ai, int crtc_idx, int x, int y )  
    187187    xorigin = 0;
    188188    yorigin = 0;
    189189       
    190     if( x < 0 )
    191         xorigin = -x;
     190    if( x < 0 )
     191        xorigin = -x;
    192192       
    193     if( y < 0 )
    194         yorigin = -y;
     193    if( y < 0 )
     194        yorigin = -y;
    195195
    196196    if( crtc_idx == 0 ) {
    197197        OUTREG( ai->regs, RADEON_CUR_HORZ_VERT_OFF, RADEON_CUR_LOCK
  • src/add-ons/accelerants/radeon/impactv.c

    diff --git a/src/add-ons/accelerants/radeon/impactv.c b/src/add-ons/accelerants/radeon/impactv.c
    index f2bf208..823ee8d 100644
    a b void Radeon_CalcImpacTVRegisters(  
    509509        (1 << RADEON_TV_CLOCK_SEL_CNTL_BYTCLKD_SHIFT);
    510510   
    511511    values->tv_clkout_cntl = 0x09;
    512     if( !internal_encoder )
    513         values->tv_clkout_cntl |= 1 << 5;
     512    if( !internal_encoder )
     513        values->tv_clkout_cntl |= 1 << 5;
    514514
    515515    values->tv_htotal = mode->timing.h_total - 1;
    516516    values->tv_hsize = mode->timing.h_display;