diff options
author | tobik <tobik@FreeBSD.org> | 2018-01-09 01:23:41 +0800 |
---|---|---|
committer | Koop Mast <kwm@rainbow-runner.nl> | 2018-02-04 06:20:55 +0800 |
commit | aeaa6c80be2fc2e859f7a0d67dd78aead9a2dae4 (patch) | |
tree | 4316b3350b2ee81a24a5b65a253bacf14cd3c0f9 /games | |
parent | 89d35642b7b4dd5ca1aceae8e2e64438d091036d (diff) | |
download | freebsd-ports-gnome-aeaa6c80be2fc2e859f7a0d67dd78aead9a2dae4.tar.gz freebsd-ports-gnome-aeaa6c80be2fc2e859f7a0d67dd78aead9a2dae4.tar.zst freebsd-ports-gnome-aeaa6c80be2fc2e859f7a0d67dd78aead9a2dae4.zip |
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
Diffstat (limited to 'games')
-rw-r--r-- | games/iortcw/files/patch-clang6 | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/games/iortcw/files/patch-clang6 b/games/iortcw/files/patch-clang6 new file mode 100644 index 000000000000..2cd851652173 --- /dev/null +++ b/games/iortcw/files/patch-clang6 @@ -0,0 +1,54 @@ +Comment unused TestStringClass() and fix build with Clang 6 + +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 ); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +--- MP/code/splines/util_str.cpp.orig 2018-01-08 12:19:28 UTC ++++ MP/code/splines/util_str.cpp +@@ -454,6 +454,7 @@ void idStr::snprintf + #pragma warning(disable : 4189) // local variable is initialized but not referenced + #endif + ++#if 0 + /* + ================= + TestStringClass +@@ -526,6 +527,7 @@ void TestStringClass + + a[1] = '1'; // a.data = "t1st", b.data = "test" + } ++#endif + + #ifdef _MSC_VER + #pragma warning(default : 4189) // local variable is initialized but not referenced +--- SP/code/splines/util_str.cpp.orig 2018-01-08 12:19:44 UTC ++++ SP/code/splines/util_str.cpp +@@ -454,6 +454,7 @@ void idStr::snprintf + #pragma warning(disable : 4189) // local variable is initialized but not referenced + #endif + ++#if 0 + /* + ================= + TestStringClass +@@ -526,6 +527,7 @@ void TestStringClass + + a[1] = '1'; // a.data = "t1st", b.data = "test" + } ++#endif + + #ifdef _MSC_VER + #pragma warning(default : 4189) // local variable is initialized but not referenced |