Hi Kristofer,

This compiler warning is very useful - it's picked out a bug.  I've applied
a fix, the same as the first one you suggested below.  BTW, what compiler
picked out this warning?

Robert.

On 1 December 2012 11:04, Kristofer Tingdahl
<[email protected]>wrote:

> Hi,
>
> Every time I compile osg or osg313 (or anything dependent on it) I get a
> compiler warning from include/osg/Uniform:372 where it complains that the
> variable a02 is not used.
>
> I cannot understand why you would not use a02 in the last statement on
> line 377 (a01 is used instead).
>
> Hence, I suggest that either
>
>
>    - a01 is replaced by a02 on the statement on line 377, or
>    - (if I'm not grasping the higher intelligence used here) that
>    variable a02 is remove (i.e. the argument would simply be value_type
>    without a name). Then the warning would at least be killed.
>
> As no one has complained before, I assume that a02 is not frequently
> non-zero. I am however a bit surprised it's not addressed before, 'cause I
> have got this warning on a bunch of platforms.
> - Sincerely,
>
>
> Kristofer Tingdahl
>
> --
> Kristofer Tingdahl, Ph. D.
> dGB Earth Sciences
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to