Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Jan 2018 21:20:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 224826] sysutils/smartmontools: Fix build with clang 6.0.0
Message-ID:  <bug-224826-13-R14mj0m5TM@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-224826-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-224826-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224826

--- Comment #3 from commit-hook@freebsd.org ---
A commit references this bug:

Author: dim
Date: Mon Jan  1 21:19:34 UTC 2018
New revision: 457814
URL: https://svnweb.freebsd.org/changeset/ports/457814

Log:
  Make smartmontools 6.6 compile with clang 6.0.0 and higher

  Because clang 6.0.0 and higher default to -std=3Dgnu++14, like gcc 6 and
  higher, compiling smartmontools results in the following error:

  os_freebsd.cpp:487:45: error: invalid suffix on literal; C++11 requires
  a space between literal and identifier [-Wreserved-user-defined-literal]
    else if (sscanf(dev, NVME_CTRLR_PREFIX"%d"NVME_NS_PREFIX"%d%c",
                                              ^

  Fix this by adding spaces around the NVME_NS_PREFIX macro. This makes
  the source C++14 compatible.

  Approved by:  samm@os2.kiev.ua (maintainer)
  PR:           224826
  MFH:          2018Q1

Changes:
  head/sysutils/smartmontools/Makefile
  head/sysutils/smartmontools/files/patch-os__freebsd.cpp

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224826-13-R14mj0m5TM>