Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jan 2018 12:01:43 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r458133 - branches/2018Q1/multimedia/smpeg2
Message-ID:  <201801051201.w05C1hl2055156@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Fri Jan  5 12:01:43 2018
New Revision: 458133
URL: https://svnweb.freebsd.org/changeset/ports/458133

Log:
  MFH: r458131
  
  multimedia/smpeg2: unbreak build with Clang 6 (C++14 by default)
  
  audio/hufftable.cpp:553:8: error: constant expression evaluates to -1 which cannot be narrowed to
        type 'unsigned int' [-Wc++11-narrowing]
    { 0, 0-1, 0-1, 0,  0, htd33},
         ^~~
  audio/hufftable.cpp:553:8: note: insert an explicit cast to silence this issue
    { 0, 0-1, 0-1, 0,  0, htd33},
         ^~~
         static_cast<unsigned int>( )
  audio/hufftable.cpp:553:13: error: constant expression evaluates to -1 which cannot be narrowed to
        type 'unsigned int' [-Wc++11-narrowing]
    { 0, 0-1, 0-1, 0,  0, htd33},
              ^~~
  audio/hufftable.cpp:553:13: note: insert an explicit cast to silence this issue
    { 0, 0-1, 0-1, 0,  0, htd33},
              ^~~
              static_cast<unsigned int>( )
  audio/hufftable.cpp:557:8: error: constant expression evaluates to -1 which cannot be narrowed to
        type 'unsigned int' [-Wc++11-narrowing]
    { 4, 0-1, 0-1, 0,  0, htd33},
         ^~~
  audio/hufftable.cpp:557:8: note: insert an explicit cast to silence this issue
    { 4, 0-1, 0-1, 0,  0, htd33},
         ^~~
         static_cast<unsigned int>( )
  audio/hufftable.cpp:557:13: error: constant expression evaluates to -1 which cannot be narrowed to
        type 'unsigned int' [-Wc++11-narrowing]
    { 4, 0-1, 0-1, 0,  0, htd33},
              ^~~
  audio/hufftable.cpp:557:13: note: insert an explicit cast to silence this issue
    { 4, 0-1, 0-1, 0,  0, htd33},
              ^~~
              static_cast<unsigned int>( )
  audio/hufftable.cpp:567:8: error: constant expression evaluates to -1 which cannot be narrowed to
        type 'unsigned int' [-Wc++11-narrowing]
    {14, 0-1, 0-1, 0,  0, htd33},
         ^~~
  audio/hufftable.cpp:567:8: note: insert an explicit cast to silence this issue
    {14, 0-1, 0-1, 0,  0, htd33},
         ^~~
         static_cast<unsigned int>( )
  audio/hufftable.cpp:567:13: error: constant expression evaluates to -1 which cannot be narrowed to
        type 'unsigned int' [-Wc++11-narrowing]
    {14, 0-1, 0-1, 0,  0, htd33},
              ^~~
  audio/hufftable.cpp:567:13: note: insert an explicit cast to silence this issue
    {14, 0-1, 0-1, 0,  0, htd33},
              ^~~
              static_cast<unsigned int>( )
  
  Reported by:	antoine (via bug 224669)
  Obtained from:	r458130
  Approved by:	ports-secteam blanket

Modified:
  branches/2018Q1/multimedia/smpeg2/Makefile
Directory Properties:
  branches/2018Q1/   (props changed)

Modified: branches/2018Q1/multimedia/smpeg2/Makefile
==============================================================================
--- branches/2018Q1/multimedia/smpeg2/Makefile	Fri Jan  5 11:58:12 2018	(r458132)
+++ branches/2018Q1/multimedia/smpeg2/Makefile	Fri Jan  5 12:01:43 2018	(r458133)
@@ -16,7 +16,8 @@ LICENSE_COMB=	multi
 
 GNU_CONFIGURE=	yes
 INSTALL_TARGET=	install-strip
-USES=		libtool
+CFLAGS+=	${COMPILER_FEATURES:Mc++11:C/.+/-Wno-error=narrowing/}
+USES=		compiler:features libtool
 USE_SDL=	sdl2
 USE_LDCONFIG=	yes
 



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