Project

General

Profile

Actions

Bug #13011

closed

tsalarm: '*' in boolean context, suggest '&&' instead

Added by Toomas Soome almost 2 years ago. Updated almost 2 years ago.

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

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Build error on SPARC. It appear we should have & instead of *.

    ../../../sun4v/ontario/io/tsalarm.c: In function 'tsalarm_open':
    ../../../sun4v/ontario/io/tsalarm.c:547:20: error: '*' in boolean context, suggest '&&' instead [-Werror=int-in-bool-context]
       if (softc->flags * TSAL_IDENTED)
                        ^
    cc1: all warnings being treated as errors

Testing done: build/install/boot (on T4-1)

Actions

Also available in: Atom PDF