Ticket #12763: 0015-TIFFTranslator.cpp-fix-gcc6-build.patch

File 0015-TIFFTranslator.cpp-fix-gcc6-build.patch, 1.1 KB (added by mt, 8 years ago)
  • src/add-ons/translators/tiff/TIFFTranslator.cpp

    From 73b6da7d810882ee1f8a20668984aa4ceea82881 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Thu, 5 May 2016 17:04:05 +0900
    Subject: [PATCH 15/24] TIFFTranslator.cpp: fix gcc6 build
    
    * Reindent source code, to fix gcc6
      '-Werror=misleading-indentation' warnings.
    ---
     src/add-ons/translators/tiff/TIFFTranslator.cpp | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/add-ons/translators/tiff/TIFFTranslator.cpp b/src/add-ons/translators/tiff/TIFFTranslator.cpp
    index 1b836f6..385fc63 100644
    a b TIFFTranslator::translate_from_bits(BPositionIO *inSource, uint32 outType,  
    652652        TIFF* tif = TIFFClientOpen("TIFFTranslator", "w", outDestination,
    653653            tiff_read_proc, tiff_write_proc, tiff_seek_proc, tiff_close_proc,
    654654            tiff_size_proc, tiff_map_file_proc, tiff_unmap_file_proc);
    655         if (!tif)
    656             return B_NO_TRANSLATOR;
     655        if (!tif)
     656            return B_NO_TRANSLATOR;
    657657
    658658        // common fields which are independent of the bitmap format
    659659        uint32 width = bitsHeader.bounds.IntegerWidth() + 1;