From 706736a73d5b282d67d4fa53b3197065b6ae3558 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 23 May 2012 20:24:21 +0000 Subject: [PATCH] Fix some warning messages to correctly show class names. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13111 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/lang.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Modules/lang.cxx b/Source/Modules/lang.cxx index c90ebeb73..9999fd3fe 100644 --- a/Source/Modules/lang.cxx +++ b/Source/Modules/lang.cxx @@ -2623,7 +2623,7 @@ int Language::constructorDeclaration(Node *n) { Delete(expected_name_resolved); } if (illegal_name) { - Swig_warning(WARN_LANG_RETURN_TYPE, input_file, line_number, "Function %s must have a return type. Ignored.\n", SwigType_namestr(name)); + Swig_warning(WARN_LANG_RETURN_TYPE, input_file, line_number, "Function %s must have a return type. Ignored.\n", Swig_name_decl(name)); Swig_restore(n); return SWIG_NOWRAP; } @@ -2760,7 +2760,7 @@ int Language::destructorDeclaration(Node *n) { } if (illegal_name) { - Swig_warning(WARN_LANG_ILLEGAL_DESTRUCTOR, input_file, line_number, "Illegal destructor name %s. Ignored.\n", SwigType_namestr(name)); + Swig_warning(WARN_LANG_ILLEGAL_DESTRUCTOR, input_file, line_number, "Illegal destructor name %s. Ignored.\n", Swig_name_decl(name)); Swig_restore(n); Delete(expected_name); return SWIG_NOWRAP;