better warning message

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6889 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-12-16 00:58:24 +00:00
commit 176d86f1d0

View file

@ -69,7 +69,7 @@ namespace std {
throw Swig::DirectorTypeMismatchException("string expected");
}
%typemap(directorout,warning="470:Using thread unsafe wrapping, consider using a lvalue return type.") const string & {
%typemap(directorout,warning="470:Using thread/reentrant unsafe wrapping, consider using a lvalue return type.") const string & {
if (TYPE($input) == T_STRING) {
static std::string temp = std::string(StringValuePtr($input));
$result = &temp;