Fixed testcase warnings.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11625 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
67b4ad7084
commit
c9fcb01943
7 changed files with 17 additions and 4 deletions
|
|
@ -2745,7 +2745,7 @@ template_directive: SWIGTEMPLATE LPAREN idstringopt RPAREN idcolonnt LESSTHAN va
|
|||
p = tp;
|
||||
def_supplied = 1;
|
||||
} else if (p && !tp) { /* Variadic template - tp < p */
|
||||
Swig_warning(0,cparse_file, cparse_line,"Only the first variadic argument is currently supported by Swig.\n");
|
||||
Swig_warning(WARN_LANG_NATIVE_UNIMPL,cparse_file, cparse_line,"Only the first variadic argument is currently supported by Swig.\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -4265,7 +4265,7 @@ cpp_member : c_declaration { $$ = $1; }
|
|||
|
||||
cpp_constructor_decl : storage_class type LPAREN parms RPAREN ctor_end {
|
||||
if (Classprefix) {
|
||||
if (Getattr($4,"type") && strstr(Char(Getattr($4,"type")), "initializer_list<")) {
|
||||
if ($4 && Getattr($4,"type") && strstr(Char(Getattr($4,"type")), "initializer_list<")) {
|
||||
/* Ignore constructors containing initializer_list<> introduced in C++0x */
|
||||
Swig_warning(WARN_LANG_INITIALIZER_LIST, cparse_file, cparse_line, "Constructor with std::initializer_list<> argument ignored.\n");
|
||||
$$ = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue