Ticket #12764: 0016-Ports.cpp-fix-gcc6-build.patch

File 0016-Ports.cpp-fix-gcc6-build.patch, 1.1 KB (added by mt, 8 years ago)
  • src/add-ons/accelerants/intel_extreme/Ports.cpp

    From 388bca6ec8a0116ae83dbb819421942c15ad2335 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Thu, 5 May 2016 17:06:04 +0900
    Subject: [PATCH 16/24] Ports.cpp: fix gcc6 build
    
    * Reindent source code, to fix gcc6
      '-Werror=misleading-indentation' warnings.
    ---
     src/add-ons/accelerants/intel_extreme/Ports.cpp | 8 ++++----
     1 file changed, 4 insertions(+), 4 deletions(-)
    
    diff --git a/src/add-ons/accelerants/intel_extreme/Ports.cpp b/src/add-ons/accelerants/intel_extreme/Ports.cpp
    index 7b09800..e302d53 100644
    a b Port::SetPipe(Pipe* pipe)  
    130130
    131131    uint32 portState = read32(portRegister);
    132132
    133     if (pipe->Index() == INTEL_PIPE_A)
    134         write32(portRegister, portState & ~DISPLAY_MONITOR_PIPE_B);
    135     else
    136         write32(portRegister, portState | DISPLAY_MONITOR_PIPE_B);
     133    if (pipe->Index() == INTEL_PIPE_A)
     134        write32(portRegister, portState & ~DISPLAY_MONITOR_PIPE_B);
     135    else
     136        write32(portRegister, portState | DISPLAY_MONITOR_PIPE_B);
    137137
    138138    fPipe = pipe;
    139139