Project

General

Profile

Bug #11453

zpool: NULL pointer errors

Added by Toomas Soome 4 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
zfs - Zettabyte File System
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build errors with NULL pointer:

    zpool_vdev.c: In function 'check_disk':
    zpool_vdev.c:196:31: error: comparison between pointer and integer [-Werror]
          &err)) == NULL || *drive == NULL) {
                                   ^~
    zpool_vdev.c:216:13: error: comparison between pointer and integer [-Werror]
      if (*media == NULL) {
                 ^~
    zpool_vdev.c:238:23: error: comparison between pointer and integer [-Werror]
      for (i = 0; slice[i] != NULL; i++) {
                           ^~
    zpool_vdev.c: In function 'check_device':
    zpool_vdev.c:267:62: error: comparison between pointer and integer [-Werror]
      if ((desc = dm_get_descriptor_by_name(DM_ALIAS, dev, &err)) != NULL) {
                                                                  ^~
    cc1: all warnings being treated as errors

Also available in: Atom PDF