Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Jan 2018 18:20:58 +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-oFJB37BhFX@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 #4 from commit-hook@freebsd.org ---
A commit references this bug:

Author: dim
Date: Tue Jan  2 18:20:28 UTC 2018
New revision: 457915
URL: https://svnweb.freebsd.org/changeset/ports/457915

Log:
  MFH: r457814

  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:  portmgr (zi)
  Approved by:  samm@os2.kiev.ua (maintainer)
  PR:           224826

Changes:
_U  branches/2018Q1/
  branches/2018Q1/sysutils/smartmontools/Makefile
  branches/2018Q1/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-oFJB37BhFX>