From dbf4821b18e0811564ae221619efaee3a3fd5ba2 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 5 Feb 2013 07:17:54 +0000 Subject: [PATCH] Add ability to suppress variadic template first argumnet warning --- Source/CParse/parser.y | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/CParse/parser.y b/Source/CParse/parser.y index 5bbb63846..f1973a05c 100644 --- a/Source/CParse/parser.y +++ b/Source/CParse/parser.y @@ -2967,7 +2967,9 @@ template_directive: SWIGTEMPLATE LPAREN idstringopt RPAREN idcolonnt LESSTHAN va p = tp; def_supplied = 1; } else if (p && !tp) { /* Variadic template - tp < p */ + SWIG_WARN_NODE_BEGIN(nn); Swig_warning(WARN_CPP11_VARIADIC_TEMPLATE,cparse_file, cparse_line,"Only the first variadic template argument is currently supported.\n"); + SWIG_WARN_NODE_END(nn); break; } }