#12765: [Patch] nv_acc_dma.c: fix gcc6 build
----------------------------------------+------------------------------
Reporter: mt | Owner: rudolfc
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Drivers/Graphics/nVidia | Version: R1/Development
Keywords: add-ons/accelerants/nvidia | Blocked By:
Blocking: | Has a Patch: 0
Platform: All |
----------------------------------------+------------------------------
Remove ";" after for() at line 680.
{{{
Cc /home/haiku/haiku/haiku/generated-gcc6/objects/haiku/x86/release/add-
ons/accelerants/nvidia/engine/nv_acc_dma.o
/home/haiku/haiku/haiku/src/add-
ons/accelerants/nvidia/engine/nv_acc_dma.c: In function 'nv_acc_init_dma':
/home/haiku/haiku/haiku/src/add-
ons/accelerants/nvidia/engine/nv_acc_dma.c:680:4: error: this 'for' clause
does not guard... [-Werror=misleading-indentation]
for (cnt = 0; (tmp && !(tmp & 0x00000001)); tmp >>= 1, cnt++);
^~~
/home/haiku/haiku/haiku/src/add-
ons/accelerants/nvidia/engine/nv_acc_dma.c:681:4: note: ...this statement,
but the latter is misleadingly indented as if it is guarded by the 'for'
{
^
cc1: all warnings being treated as errors
}}}
--
Ticket URL: <https://dev.haiku-os.org/ticket/12765>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.