Project

General

Profile

Bug #9400

avs: comparison between pointer and zero character constant

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

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

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

issue found by gcc 7 build:

sndrsyncd.c: In function 'cleanup_hostlist':
sndrsyncd.c:1023:29: error: comparison between pointer and zero character consta
nt [-Werror=pointer-compare]
        (host_list->hosts[i] == '\0')) {
                             ^~
sndrsyncd.c:1023:9: note: did you mean to dereference the pointer?
        (host_list->hosts[i] == '\0')) {
         ^
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 bc0e4c28fd7055db02709c3af822f81959511c73

commit  bc0e4c28fd7055db02709c3af822f81959511c73
Author: Toomas Soome <tsoome@me.com>
Date:   2018-05-14T15:26:51.000Z

    9400 avs: 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: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF