[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Warnings from the bindings

From: Philip Martin <philip_at_codematters.co.uk>
Date: Fri, 06 Apr 2018 23:25:54 +0100

Philip Martin <philip_at_codematters.co.uk> writes:

> Iterator iter(get_iterator());
> while (iter.has_next())
> + {
> + m_env.PushLocalFrame(10);
> function(T(m_env, NativeT(iter.next())));
> + m_env.PopLocalFrame();
> + }
> return function;

Rewriting as:

      while (iter.has_next())
      {
        NativeT nt(iter.next());
        m_env.PushLocalFrame(10);
        T t(m_env, nt);
        function(t);
        m_env.PopLocalFrame();
      }

also removes the warning, but if I move the T construction before the
PushLocalframe then the warning returns. T is JavaHL:ExternalItem.

-- 
Philip
Received on 2018-04-07 00:26:00 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.