Project

General

Profile

Bug #9351

pcmcia: error: '*' in boolean context, suggest '&&' instead

Added by Toomas Soome over 1 year ago. Updated about 1 year ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Issue found by gcc 7 build:

    ../../common/pcmcia/nexus/pcmcia.c:853:25: error: '*' in boolean context, suggest '&&' instead [-Werror=int-in-bool-context]
        if (!(ppd->ppd_flags * PPD_CARD_CARDBUS))
             ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk about 1 year ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit 2990a173407351bd44b04c3c4e75c7ff0aa384d7

commit  2990a173407351bd44b04c3c4e75c7ff0aa384d7
Author: Toomas Soome <tsoome@me.com>
Date:   2018-04-23T16:15:39.000Z

    9351 pcmcia: error: '*' in boolean context, suggest '&&' instead
    Reviewed by: Yuri Pankov <yuripv@yuripv.net>
    Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
    Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>

Also available in: Atom PDF