Project

General

Profile

Actions

Bug #11979

closed

libshell: bitwise comparison always evaluates to false

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

100%

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

Description

Build error with gcc 8:

    ../common/sh/nvtree.c: In function 'nv_attribute':
    ../common/sh/nvtree.c:431:34: error: bitwise comparison always evaluates to false [-Werror=tautological-compare]
       if((attr&NV_NOPRINT|NV_INTEGER)==NV_NOPRINT)
                                      ^~
    cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF