[Bug 224826] sysutils/smartmontools: Fix build with clang 6.0.0
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Jan 2 18:20:59 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224826
--- Comment #4 from commit-hook at 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=gnu++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 at os2.kiev.ua (maintainer)
PR: 224826
Changes:
_U branches/2018Q1/
branches/2018Q1/sysutils/smartmontools/Makefile
branches/2018Q1/sysutils/smartmontools/files/patch-os__freebsd.cpp
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list