Re: Lots of warnings when compiling a project using ROOT 5.26.00a

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Thu, 18 Feb 2010 07:51:22 -0600


Hi Constantin,

How are you getting those error messages?

Note that both those messages are accurate but can not (to my knowledge) be removed
as they are a reflection of implementation choice that we have intentionally made (i.e. removing them would require removing functionality from the interfaces).

Cheers,
Philippe.

On 2/17/10 7:20 AM, Constantin Loizides wrote:
> Hi all,
>
> on fedora 12, using
> gcc version 4.4.3 20100127 (Red Hat 4.4.3-4) (GCC)
>
> I get the following warnings when compiling a project, but
> not when compiling ROOT 5.26.00a itself.
>
> /opt/root/root_v5-26-00/include/TRefArray.h:117: warning: base class
> ‘struct std::iterator<std::bidirectional_iterator_tag, TObject*, int,
> const TObject**, const TObject*&>’ has a non-virtual
> /opt/root/root_v5-26-00/include/TMatrixT.h:283: warning: user-defined
> ‘TMatrixT<Element> operator&&(const TMatrixT<Element>&, const
> TMatrixT<Element>&)’ always evaluates both arguments
> /opt/root/root_v5-26-00/include/TMatrixT.h:284: warning: user-defined
> ‘TMatrixT<Element> operator&&(const TMatrixT<Element>&, const
> TMatrixTSym<Element>&)’ always evaluates both arguments
> /opt/root/root_v5-26-00/include/TMatrixT.h:285: warning: user-defined
> ‘TMatrixT<Element> operator&&(const TMatrixTSym<Element>&, const
> TMatrixT<Element>&)’ always evaluates both arguments
> /opt/root/root_v5-26-00/include/TMatrixT.h:286: warning: user-defined
> ‘TMatrixT<Element> operator||(const TMatrixT<Element>&, const
> TMatrixT<Element>&)’ always evaluates both arguments
> /opt/root/root_v5-26-00/include/TMatrixT.h:287: warning: user-defined
> ‘TMatrixT<Element> operator||(const TMatrixT<Element>&, const
> TMatrixTSym<Element>&)’ always evaluates both arguments
>
> and a few more.
>
> What is the best way to suppress or fix those warnings?
>
> Thanks,
> Constantin
>
>
Received on Thu Feb 18 2010 - 14:51:29 CET

This archive was generated by hypermail 2.2.0 : Mon Feb 22 2010 - 11:50:01 CET