Project

General

Profile

Actions

Bug #9028

closed

libc: comparison between pointer and zero character constant

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

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

100%

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

Description

Issue revealed by gcc 7:

    ../port/gen/nlspath_checks.c: In function 'clean_env':
    ../port/gen/nlspath_checks.c:629:30: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
       for (p++; (p[-off] = p[0]) != '\0'; p++)
                                  ^~
    ../port/gen/nlspath_checks.c:629:13: note: did you mean to dereference the pointer?
       for (p++; (p[-off] = p[0]) != '\0'; p++)
                 ^
    cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF