HomeFreeBSD

MFH: r458130

Description

MFH: r458130

multimedia/smpeg: unbreak build with Clang 6 (C++14 by default)

huffmantable.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},
     ^~~

huffmantable.cpp:553:8: note: insert an explicit cast to silence this issue

{ 0, 0-1, 0-1, 0,  0, htd33},
     ^~~
     static_cast<unsigned int>( )

huffmantable.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},
          ^~~

huffmantable.cpp:553:13: note: insert an explicit cast to silence this issue

{ 0, 0-1, 0-1, 0,  0, htd33},
          ^~~
          static_cast<unsigned int>( )

huffmantable.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},
     ^~~

huffmantable.cpp:557:8: note: insert an explicit cast to silence this issue

{ 4, 0-1, 0-1, 0,  0, htd33},
     ^~~
     static_cast<unsigned int>( )

huffmantable.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},
          ^~~

huffmantable.cpp:557:13: note: insert an explicit cast to silence this issue

{ 4, 0-1, 0-1, 0,  0, htd33},
          ^~~
          static_cast<unsigned int>( )

huffmantable.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},
     ^~~

huffmantable.cpp:567:8: note: insert an explicit cast to silence this issue

{14, 0-1, 0-1, 0,  0, htd33},
     ^~~
     static_cast<unsigned int>( )

huffmantable.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},
          ^~~

huffmantable.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: Arch Linux
Approved by: ports-secteam blanket

Details

Provenance
jbeichAuthored on
Parents
rP458131: multimedia/smpeg2: unbreak build with Clang 6 (C++14 by default)
Branches
Unknown
Tags
Unknown