svn commit: r479272 - head/astro/wmsolar
Tobias Kortkamp
tobik at FreeBSD.org
Sun Sep 9 07:04:55 UTC 2018
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 at 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' \
More information about the svn-ports-head
mailing list