Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Feb 2017 14:55:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 217001] graphics/gle-graphics: fails to build with lang/gcc6 or later
Message-ID:  <bug-217001-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217001

            Bug ID: 217001
           Summary: graphics/gle-graphics: fails to build with lang/gcc6
                    or later
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://gcc.gnu.org/gcc-6/porting_to.html
                OS: Any
            Status: New
          Keywords: needs-patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: jbeich@FreeBSD.org
                CC: gerald@FreeBSD.org, nivit@FreeBSD.org
                CC: gerald@FreeBSD.org, nivit@FreeBSD.org

op_def.cpp:224:29: error: narrowing conversion of '4278190080u' from 'unsig=
ned
int' to 'int' inside { } [-Wnarrowing]
   { "END",  typ_end,  1, 1} };
                             ^

build log: http://sprunge.us/QNSi

clang++ -std=3Dc++11 has a more clear error message:

op_def.cpp:205:29: error: constant expression evaluates to 4278190080 which
cannot be narrowed to
      type 'int' [-Wc++11-narrowing]
                { "CLEAR",      typ_switch,     1, GLE_FILL_CLEAR },
                                                   ^~~~~~~~~~~~~~
./color.h:63:25: note: expanded from macro 'GLE_FILL_CLEAR'
#define GLE_FILL_CLEAR  0XFF000000
                        ^~~~~~~~~~
op_def.cpp:205:29: note: insert an explicit cast to silence this issue
                { "CLEAR",      typ_switch,     1, GLE_FILL_CLEAR },
                                                   ^~~~~~~~~~~~~~
                                                   static_cast<int>( )
./color.h:63:25: note: expanded from macro 'GLE_FILL_CLEAR'
#define GLE_FILL_CLEAR  0XFF000000
                        ^~~~~~~~~~

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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