Opened 8 years ago

Closed 8 years ago

#12765 closed bug (fixed)

[Patch] nv_acc_dma.c: fix gcc6 build

Reported by: mt Owned by: rudolfc
Priority: normal Milestone: Unscheduled
Component: Drivers/Graphics/nVidia Version: R1/Development
Keywords: add-ons/accelerants/nvidia Cc:
Blocked By: Blocking:
Platform: All

Description

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

Attachments (1)

0017-nv_acc_dma.c-fix-gcc6-build.patch (920 bytes ) - added by mt 8 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 by mt, 8 years ago

patch: 01

comment:2 by waddlesplash, 8 years ago

Resolution: fixed
Status: newclosed

Applied in hrev50308. Thanks!

Note: See TracTickets for help on using tickets.