[Bug 216060] graphics/fracplanet: fails to build with libc++ 4.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jan 14 07:15:11 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216060

--- Comment #1 from Jan Beich (mail not working) <jbeich at FreeBSD.org> ---
(In reply to Dimitry Andric from bug 216034 comment #6)
> Note that the upstream author has reverted the commit causing this here:
>
> http://llvm.org/viewvc/llvm-project?rev=291921&view=rev
>
> and has also merged it to the 4.0 branch. I will import the upstream
> branch into the projects/clang400-import branch soon.

lang/gcc6 and later versions are also affected.

image.cpp: In member function 'bool Raster<T>::write_pgmfile(const string&,
Progress*) const [with T = unsigned char; std::__cxx11::string =
std::__cxx11::basic_string<char>]':
image.cpp:88:10: error: cannot convert 'std::ofstream {aka
std::basic_ofstream<char>}' to 'bool' in return
   return out;
          ^~~
image.cpp: In member function 'bool Raster<T>::write_pgmfile(const string&,
Progress*) const [with T = short unsigned int; std::__cxx11::string =
std::__cxx11::basic_string<char>]':
image.cpp:104:28: warning: narrowing conversion of '(((int)(* it)) >> 8)' from
'int' to 'uchar {aka unsigned char}' inside { } [-Wnarrowing]
    const uchar p[2]={((*it)>>8),(*it)};
                      ~~~~~~^~~~
image.cpp:104:34: warning: narrowing conversion of '(ushort)(* it)' from
'ushort {aka short unsigned int}' to 'uchar {aka unsigned char}' inside { }
[-Wnarrowing]
    const uchar p[2]={((*it)>>8),(*it)};
                                 ~^~~~
image.cpp:118:10: error: cannot convert 'std::ofstream {aka
std::basic_ofstream<char>}' to 'bool' inreturn
   return out;
          ^~~
image.cpp: In member function 'bool Raster<T>::write_ppmfile(const string&,
Progress*) const [with T = ByteRGBA; std::__cxx11::string =
std::__cxx11::basic_string<char>]':
image.cpp:135:10: error: cannot convert 'std::ofstream {aka
std::basic_ofstream<char>}' to 'bool' inreturn
   return out;
          ^~~

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


More information about the freebsd-ports-bugs mailing list