This code seems simple enough (from cxxPack)...<br><br>RcppExport SEXP testBankOpen(SEXP name, SEXP id, SEXP balance) {<br>    BEGIN_RCPP<br>    BankAccount *p = new BankAccount(Rcpp::as&lt;std::string&gt;(name),<br>                     Rcpp::as&lt;int&gt;(id),<br>
                     Rcpp::as&lt;double&gt;(balance));<br>    Rcpp::XPtr&lt;BankAccount&gt; xp(p, true);<br>    return xp;<br>    END_RCPP<br>}<br><br>Yet I get this from the Sun/Solaris compiler;<br><br>&quot;/home/ripley/R/Lib32/Rcpp/include/Rcpp/XPtr.h&quot;, line 46: Warning: 
m_sexp hides Rcpp::RObject::m_sexp.<br>
&quot;testBankAccount.cpp&quot;, line 35:     Where: While instantiating 
&quot;Rcpp::XPtr&lt;BankAccount&gt;::XPtr(SEXPREC*, SEXPREC*, SEXPREC*)&quot;.<br>
&quot;testBankAccount.cpp&quot;, line 35:     Where: Instantiated from 
non-template code.<br>
&quot;/home/ripley/R/Lib32/Rcpp/include/Rcpp/XPtr.h&quot;, line 180: Warning 
(Anachronism): Formal argument fun of type extern &quot;C&quot; void(*)(SEXPREC*) 
in call to R_RegisterCFinalizerEx(SEXPREC*, extern &quot;C&quot; 
void(*)(SEXPREC*), Rboolean) is being passed void(*)(SEXPREC*).<br>
&quot;/home/ripley/R/Lib32/Rcpp/include/Rcpp/XPtr.h&quot;, line 174:     Where: 
While instantiating 
&quot;Rcpp::XPtr&lt;BankAccount&gt;::setDeleteFinalizer()&quot;.<br>
&quot;/home/ripley/R/Lib32/Rcpp/include/Rcpp/XPtr.h&quot;, line 174:     Where: 
Instantiated from Rcpp::XPtr&lt;BankAccount&gt;::XPtr(BankAccount*, 
bool, SEXPREC*, SEXPREC*).<br>
&quot;testBankAccount.cpp&quot;, line 25:     Where: Instantiated from 
non-template code.<br><br>The same compiler warns when I wrap a std::vector&lt;double&gt;:<br><br>&quot;/home/ripley/R/Lib32/Rcpp/include/Rcpp/traits/is_convertible.h&quot;, line 
40: Warning: A non-POD object of type &quot;std::vector&lt;double&gt;&quot; passed
 as a variable argument to function &quot;static 
Rcpp::traits::is_convertible&lt;std::vector&lt;double&gt;, 
SEXPREC*&gt;::Test(...)&quot;.<br>
&quot;/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/wrap.h&quot;, line 510:     
Where: While specializing 
&quot;Rcpp::traits::is_convertible&lt;std::vector&lt;double&gt;, 
SEXPREC*&gt;&quot;.<br>
&quot;/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/wrap.h&quot;, line 510:     
Where: Instantiated from 
Rcpp::internal::wrap_dispatch_unknown_importable&lt;std::vector&lt;double&gt;&gt;(const
 std::vector&lt;double&gt;&amp;, 
Rcpp::traits::integral_constant&lt;bool, 0&gt;).<br>
&quot;/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/wrap.h&quot;, line 527:     
Where: Instantiated from 
Rcpp::internal::wrap_dispatch&lt;std::vector&lt;double&gt;&gt;(const 
std::vector&lt;double&gt;&amp;, Rcpp::traits::wrap_type_unknown_tag).<br>
&quot;/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/wrap.h&quot;, line 624:     
Where: Instantiated from 
Rcpp::wrap&lt;std::vector&lt;double&gt;&gt;(const 
std::vector&lt;double&gt;&amp;).<br>
&quot;testFFT.cpp&quot;, line 29:     Where: Instantiated from non-template code.<br><br>Odd thing about the last message is that there are two lines that do exactly the same thing (wrap a std::vector&lt;double&gt;) but<br>
the compiler issues a warning about only one of them.<br><br>Ideas?<br><br>Thanks,<br>Dominick<br><br>