Consistent warning 470 across all languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7126 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
aa44d06e90
commit
506d1a02b9
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ namespace std {
|
|||
throw Swig::DirectorTypeMismatchException("string expected");
|
||||
}
|
||||
|
||||
%typemap(directorout,warning="470:Using thread/reentrant unsafe wrapping, consider using a lvalue return type.") const string & {
|
||||
%typemap(directorout,warning=SWIG_WARN_TYPEMAP_THREAD_UNSAFE) const string & {
|
||||
if (TYPE($input) == T_STRING) {
|
||||
static std::string temp = std::string(StringValuePtr($input));
|
||||
$result = &temp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue