Project

General

Profile

Bug #9036

zfs: duplicate 'const' declaration specifier

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

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

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 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>

Also available in: Atom PDF