Date: Sun, 9 Sep 2018 07:04:54 +0000 (UTC) From: Tobias Kortkamp <tobik@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r479272 - head/astro/wmsolar Message-ID: <201809090704.w8974sHE008521@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tobik Date: Sun Sep 9 07:04:54 2018 New Revision: 479272 URL: https://svnweb.freebsd.org/changeset/ports/479272 Log: astro/wmsolar: Fix build with Clang 6 In file included from wmSolar.c:15: ./wmSolar_mask.xbm:6:12: error: constant expression evaluates to 240 which cannot be narrowed to type 'char' [-Wc++11-narrowing] 0x00,0x00,0xf0,0xff,0xff,0xff,0xff,0xff,0xff,0x0f,0xf0,0xff,0xff,0xff,0xff, ^~~~ http://beefy12.nyi.freebsd.org/data/head-amd64-default/p479076_s338486/logs/errors/wmsolar-1.1.log In file included from wmSolar.c:18: ./Lunar.h:66:23: error: in-class initializer for static data member of type 'const double' requires 'constexpr' specifier [-Wstatic-float-init] static const double SYNODIC_MONTH = 29.530588861; ^ PR: 230880 Approved by: tkuiper@inxsoft.net (maintainer timeout, 2 weeks) Modified: head/astro/wmsolar/Makefile Modified: head/astro/wmsolar/Makefile ============================================================================== --- head/astro/wmsolar/Makefile Sun Sep 9 06:41:11 2018 (r479271) +++ head/astro/wmsolar/Makefile Sun Sep 9 07:04:54 2018 (r479272) @@ -16,6 +16,7 @@ GH_ACCOUNT= engerim42 PLIST_FILES= bin/wmSolar USE_XORG= x11 xext xpm USES= dos2unix gmake +USE_CXXSTD= gnu++98 pre-patch: @${REINPLACE_CMD} -e 's|values.h|float.h|; s|MAXDOUBLE|DBL_MAX|g' \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809090704.w8974sHE008521>