Summary: | games/iortcw: fails to build with clang 6.0 | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Jan Beich <jbeich> |
Component: | Individual Port(s) | Assignee: | Tobias Kortkamp <tobik> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | Keywords: | needs-patch |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(tobik) |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any | ||
Bug Depends on: | |||
Bug Blocks: | 224669 |
Description
Jan Beich
2018-01-08 11:43:19 UTC
Maybe use static_cast instead. NULL is promoted to nullptr by base r228918. Should be fixed now. A commit references this bug: Author: tobik Date: Mon Jan 8 17:23:42 UTC 2018 New revision: 458458 URL: https://svnweb.freebsd.org/changeset/ports/458458 Log: games/iortcw: Fix build with clang 6.0 code/splines/util_str.cpp:477:11: error: reinterpret_cast from 'nullptr_t' to 'const char *' is not allowed idStr e( reinterpret_cast<const char *>( NULL ) ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ code/splines/util_str.cpp:491:10: error: reinterpret_cast from 'nullptr_t' to 'const char *' is not allowed a = c + reinterpret_cast<const char *>( NULL ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ code/splines/util_str.cpp:494:6: error: reinterpret_cast from 'nullptr_t' to 'const char *' is not allowed a = reinterpret_cast<const char *>( NULL ) + d; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ code/splines/util_str.cpp:498:7: error: reinterpret_cast from 'nullptr_t' to 'const char *' is not allowed a += reinterpret_cast<const char *>( NULL ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PR: 224988 Reported by: jbeich Changes: head/games/iortcw/files/patch-clang6 |