Project

General

Profile

Actions

Bug #9147

closed

sun_sas: 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-20
Due date:
% Done:

100%

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

Description

Issue found by gcc 7 build:

    ../common/devtree_device_disco.c: In function 'get_attached_paths_info':
    ../common/devtree_device_disco.c:721:15: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
       if (charptr != '\0') {
                   ^~
    ../common/devtree_device_disco.c:721:7: note: did you mean to dereference the pointer?
       if (charptr != '\0') {
           ^
    cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk over 4 years ago

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

git commit 69b2e41e53282c11528827637e627614e2af615b

commit  69b2e41e53282c11528827637e627614e2af615b
Author: Toomas Soome <tsoome@me.com>
Date:   2018-02-22T15:58:42.000Z

    9147 sun_sas: comparison between pointer and zero character constant
    Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
    Reviewed by: C Fraire <cfraire@me.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Actions

Also available in: Atom PDF