Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jul 2018 12:15:11 +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: r475652 - head/audio/epos-devel
Message-ID:  <201807291215.w6TCFBoP020959@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Sun Jul 29 12:15:10 2018
New Revision: 475652
URL: https://svnweb.freebsd.org/changeset/ports/475652

Log:
  audio/epos-devel: Fix build with Clang 6
  
  ./options.lst:506:1: error: non-constant-expression cannot be narrowed from type 'long' to 'int' in initializer list [-Wc++11-narrowing]
  VOICE_OPTION (name,     STR, NULL)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ./options.lst:128:41: note: expanded from macro 'VOICE_OPTION'
  #define VOICE_OPTION(name,type,default) OPTION(name,type,default)
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~
  ./options.lst:122:109: note: expanded from macro 'OPTION'
  #define OPTION(name,type,default) {"C:" stringify(name) + 2, type, OS_CFG, A_PUBLIC, A_PUBLIC, true, false, (long int)&((configuration *)NULL)->name},
                                                                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ./options.lst:506:1: note: insert an explicit cast to silence this issue
  VOICE_OPTION (name,     STR, NULL)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ./options.lst:128:41: note: expanded from macro 'VOICE_OPTION'
  #define VOICE_OPTION(name,type,default) OPTION(name,type,default)
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~
  ./options.lst:122:109: note: expanded from macro 'OPTION'
  #define OPTION(name,type,default) {"C:" stringify(name) + 2, type, OS_CFG, A_PUBLIC, A_PUBLIC, true, false, (long int)&((configuration *)NULL)->name},
                                                                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  
  http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475044_s336572/logs/epos-2.5.37_1.log
  
  client.cc:197:33: error: assigning to 'int' from incompatible type 'nullptr_t'
                  partbuff_sizes[n_partbuffs] = NULL;
                                                ^~~~

Modified:
  head/audio/epos-devel/Makefile

Modified: head/audio/epos-devel/Makefile
==============================================================================
--- head/audio/epos-devel/Makefile	Sun Jul 29 12:07:01 2018	(r475651)
+++ head/audio/epos-devel/Makefile	Sun Jul 29 12:15:10 2018	(r475652)
@@ -14,6 +14,7 @@ LICENSE=	GPLv2 LGPL20
 LICENSE_COMB=	multi
 
 USES=		gmake
+USE_CXXSTD=	gnu++98
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	YACC="${YACC}"
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807291215.w6TCFBoP020959>