#12758: [Patch] VideoConsumer.cpp: fix gcc6 build
----------------------------------+------------------------------
Reporter: mt | Owner: mmu_man
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Applications/CodyCam | Version: R1/Development
Keywords: | Blocked By:
Blocking: | Has a Patch: 0
Platform: All |
----------------------------------+------------------------------
Add curly braces to fix gcc6 '-Werror=misleading-indentation' warnings.
{{{
C++ /home/haiku/haiku/haiku/generated-
gcc6/objects/haiku/x86/release/apps/codycam/VideoConsumer.o
/home/haiku/haiku/haiku/src/apps/codycam/VideoConsumer.cpp: In member
function 'status_t VideoConsumer::LocalSave(char*, BBitmap*)':
/home/haiku/haiku/haiku/src/apps/codycam/VideoConsumer.cpp:678:9: error:
this 'else' clause does not guard... [-Werror=misleading-indentation]
else
^~~~
/home/haiku/haiku/haiku/src/apps/codycam/VideoConsumer.cpp:681:3: note:
...this statement, but the latter is misleadingly indented as if it is
guarded by the 'else'
input.DetachBitmap(&bitmap);
^~~~~
cc1plus: all warnings being treated as errors
}}}
--
Ticket URL: <https://dev.haiku-os.org/ticket/12758>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.