Opened 3 years ago

Closed 3 years ago

#12763 closed bug (fixed)

[Patch] TIFFTranslator.cpp: fix gcc6 build

Reported by: mt Owned by: stippi
Priority: normal Milestone: Unscheduled
Component: Add-Ons/Translators/TIFF Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: yes Platform: All

Description

Reindent source code, to fix gcc6 '-Werror=misleading-indentation' warnings.

C++ /home/haiku/haiku/haiku/generated-gcc6/objects/haiku/x86/release/add-ons/translators/tiff/TIFFTranslator.o 
/home/haiku/haiku/haiku/src/add-ons/translators/tiff/TIFFTranslator.cpp: In member function 'status_t TIFFTranslator::translate_from_bits(BPositionIO*, uint32, BPositionIO*)':
/home/haiku/haiku/haiku/src/add-ons/translators/tiff/TIFFTranslator.cpp:655:6: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
      if (!tif)
      ^~
/home/haiku/haiku/haiku/src/add-ons/translators/tiff/TIFFTranslator.cpp:659:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   uint32 width = bitsHeader.bounds.IntegerWidth() + 1;
   ^~~~~~
cc1plus: all warnings being treated as errors

Attachments (1)

0015-TIFFTranslator.cpp-fix-gcc6-build.patch (1.1 KB) - added by mt 3 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 3 years ago by mt

Has a Patch: set

comment:2 Changed 3 years ago by korli

+1

comment:3 Changed 3 years ago by waddlesplash

Resolution: fixed
Status: newclosed

Applied in hrev50308. Thanks!

Note: See TracTickets for help on using tickets.