Project

General

Profile

Actions

Bug #9401

closed

cpio: comparison between pointer and zero character constant

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2018-03-28
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
External Bug:

Description

issue found by gcc 7 build:

    cpio.c: In function 'gethdr':
    cpio.c:4682:41: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
          while ((j < NAMSIZ) && (&nambuf[j] !=
                                             ^~
    cpio.c:4682:30: note: did you mean to dereference the pointer?
          while ((j < NAMSIZ) && (&nambuf[j] !=
                                  ^
    cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF