Project

General

Profile

Actions

Bug #9606

closed

qede: error: this 'for' clause does not guard

Added by Toomas Soome over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2018-06-15
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Error found by gcc 7 build:

    ../../common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c: In function 'ecore_dbg_bus_add_constraint':
    ../../common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c:5448:3: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
       for (width = 0;
       ^~~
    ../../common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c:5451:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
        if (data_mask)
        ^~
    cc1: all warnings being treated as errors

Indentation error.

Actions

Also available in: Atom PDF