graphics/inventor: unbreak with libc++ 3.9
./SoInput.c++:2813:8: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char *firstPlus = strchr(n, '+'); ^ ~~~~~~~~~~~~~~ SoInteractionKit.c++:857:12: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char *dotPtr = strchr( partName.getString(), '.' ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SoInteractionKit.c++:858:12: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char *brackPtr = strchr( partName.getString(), '[' ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reported by: pkg-fallout
This commit is contained in:
parent
efec6e852f
commit
7e0ecaf6d2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433091
@ -0,0 +1,11 @@
|
||||
--- lib/database/src/so/SoInput.c++.orig 2000-10-25 23:47:47 UTC
|
||||
+++ lib/database/src/so/SoInput.c++
|
||||
@@ -2810,7 +2810,7 @@ SoInput::addReference(const SbName &name
|
||||
|
||||
if (addToGlobalDict) {
|
||||
// Look for the first '+':
|
||||
- char *firstPlus = strchr(n, '+');
|
||||
+ const char *firstPlus = strchr(n, '+');
|
||||
|
||||
if (firstPlus == NULL) {
|
||||
base->setName(name);
|
@ -0,0 +1,13 @@
|
||||
--- lib/interaction/src/nodekits/SoInteractionKit.c++.orig 2000-08-15 12:56:25 UTC
|
||||
+++ lib/interaction/src/nodekits/SoInteractionKit.c++
|
||||
@@ -854,8 +854,8 @@ SoInteractionKit::setAnySurrogatePath( c
|
||||
// (as in "childList[0].appearance")
|
||||
// If so, get the string up to whichever came first.
|
||||
// This will be the 'intermediary' we look for.
|
||||
- char *dotPtr = strchr( partName.getString(), '.' );
|
||||
- char *brackPtr = strchr( partName.getString(), '[' );
|
||||
+ const char *dotPtr = strchr( partName.getString(), '.' );
|
||||
+ const char *brackPtr = strchr( partName.getString(), '[' );
|
||||
|
||||
if ( dotPtr != NULL || brackPtr != NULL ) {
|
||||
char *nameCopy = strdup( partName.getString() );
|
Loading…
Reference in New Issue
Block a user