HomeFreeBSD

math/py-matplotlib: unbreak build with Clang 6 (C++14 by default)

Description

math/py-matplotlib: unbreak build with Clang 6 (C++14 by default)

extern/ttconv/pprdrv_tt.cpp:245:41: error: cast from pointer to smaller type 'char' loses information

font->Copyright[length]=(char)NULL;
                        ^~~~~~~~~~

extern/ttconv/pprdrv_tt.cpp:261:42: error: cast from pointer to smaller type 'char' loses information

font->FamilyName[length]=(char)NULL;
                         ^~~~~~~~~~

extern/ttconv/pprdrv_tt.cpp:277:37: error: cast from pointer to smaller type 'char' loses information

font->Style[length]=(char)NULL;
                    ^~~~~~~~~~

extern/ttconv/pprdrv_tt.cpp:293:40: error: cast from pointer to smaller type 'char' loses information

font->FullName[length]=(char)NULL;
                       ^~~~~~~~~~

extern/ttconv/pprdrv_tt.cpp:309:39: error: cast from pointer to smaller type 'char' loses information

font->Version[length]=(char)NULL;
                      ^~~~~~~~~~

extern/ttconv/pprdrv_tt.cpp:325:40: error: cast from pointer to smaller type 'char' loses information

font->PostName[length]=(char)NULL;
                       ^~~~~~~~~~

extern/ttconv/pprdrv_tt.cpp:340:42: error: cast from pointer to smaller type 'char' loses information

font->PostName[length/2]=(char)NULL;
                         ^~~~~~~~~~

extern/ttconv/pprdrv_tt.cpp:355:41: error: cast from pointer to smaller type 'char' loses information

font->Trademark[length]=(char)NULL;
                        ^~~~~~~~~~

extern/ttconv/pprdrv_tt.cpp:1041:19: error: cast from pointer to smaller type 'char' loses information

temp[len]=(char)NULL;   /* a buffer and make it ASCIIz. */
          ^~~~~~~~~~

Reported by: antoine (via bug 224669)

Details

Provenance
jbeichAuthored on
Parents
rP458211: MFH: r458210
Branches
Unknown
Tags
Unknown