Project

General

Profile

Actions

Bug #9347

closed

c2audit: comparison between pointer and zero character constant

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2018-03-25
Due date:
% Done:

100%

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

Description

issue found by gcc 7 build:

    ../../common/c2/audit_start.c: In function 'audit_start':
    ../../common/c2/audit_start.c:178:30: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
      if (audit_s2e[scid].au_init != (au_event_t)AUE_NULL) {
                                  ^~
    ../../common/c2/audit_start.c:178:6: note: did you mean to dereference the pointer?
      if (audit_s2e[scid].au_init != (au_event_t)AUE_NULL) {
          ^
    cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk about 4 years ago

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

git commit 9f7e0c70988ceb8fe0dc3b631ab169a6af80ecc5

commit  9f7e0c70988ceb8fe0dc3b631ab169a6af80ecc5
Author: Toomas Soome <tsoome@me.com>
Date:   2018-04-01T21:48:01.000Z

    9347 c2audit: comparison between pointer and zero character constant
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Reviewed by: Yuri Pankov <yuripv@yuripv.net>
    Approved by: Gordon Ross <gwr@nexenta.com>

Actions

Also available in: Atom PDF