Project

General

Profile

Bug #9347

c2audit: comparison between pointer and zero character constant

Added by Toomas Soome over 1 year ago. Updated over 1 year 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:

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

History

#1

Updated by Electric Monk over 1 year ago

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

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>

Also available in: Atom PDF