Project

General

Profile

Actions

Bug #9036

closed

zfs: duplicate 'const' declaration specifier

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
zfs - Zettabyte File System
Start date:
2018-02-05
Due date:
% Done:

100%

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

Description

Issue revealed by gcc 7:

    ../../common/fs/zfs/vdev_indirect_mapping.c: In function 'dva_mapping_overlap_compare':
    ../../common/fs/zfs/vdev_indirect_mapping.c:136:17: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
      const uint64_t const *key = v_key;
                     ^~~~~
    ../../common/fs/zfs/vdev_indirect_mapping.c:137:43: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
      const vdev_indirect_mapping_entry_phys_t const *array_elem =
                                               ^~~~~
    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 f02c28e434fb4d81d95122bab187fb43d4f19c2a

commit  f02c28e434fb4d81d95122bab187fb43d4f19c2a
Author: Toomas Soome <tsoome@me.com>
Date:   2018-02-07T20:49:59.000Z

    9036 zfs: duplicate 'const' declaration specifier
    Reviewed by: Yuri Pankov <yuripv@yuripv.net>
    Reviewed by: Matthew Ahrens <mahrens@delphix.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF