Re: [ROOT] Warnings in Rtypes.h

From: George M. Irwin (gmieg@SLAC.stanford.edu)
Date: Thu Aug 21 2003 - 20:57:41 MEST


Hi Fons,  Here is a typical example.  The warning repeats for every file
which includes Rtypes.h.  Rene's fix eliminates the warning.  George

fruitfly> g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

g++ -g -pipe -Wall -W -Woverloaded-virtual -fPIC -Iinclude  -D_REENTRANT
-o gpad/src/TAttCanvas.o -c gpad/src/TAttCanvas.cxx
In file included from include/Htypes.h:25,
                 from include/Gtypes.h:24,
                 from include/TAttCanvas.h:25,
                 from gpad/src/TAttCanvas.cxx:13:
include/Rtypes.h:99: warning: decimal constant is so large that it is
unsigned
include/Rtypes.h:102: warning: decimal constant is so large that it is
unsigned

On Thu, 21 Aug 2003, Fons Rademakers wrote:

> With what kind of compiler switches do you run to get this warning? We
> have not seen it with any of our supported compilers and any of the
> supported platforms.
>
> -- Fons
>
>
> On Thu, 2003-08-21 at 16:23, Thomas Bretz wrote:
> > Dear all,
> >
> > after updating to root 3.05/07 from 3.02/07 we get warnings in Rtypes.h
> > (using gcc 2.95) Can this be fixed, please?
> >
> > ----------------------------------------------------------------------------
> > In file included from /CERN/root/3.05.07/root/include/TObject.h:31,
> >                  from /CERN/root/3.05.07/root/include/TNamed.h:26,
> >                  from /CERN/root/3.05.07/root/include/TDirectory.h:25,
> >                  from /CERN/root/3.05.07/root/include/TROOT.h:29,
> >                  from ../mbase/MAGIC.h:11,
> >                  from MSearch.h:5,
> >                  from MSearch.cc:41:
> > /CERN/root/3.05.07/root/include/Rtypes.h:99: warning: negative integer
> > implicitly converted to unsigned type
> > /CERN/root/3.05.07/root/include/Rtypes.h:101: warning: negative integer
> > implicitly converted to unsigned type
> > ----------------------------------------------------------------------------
> >
> > For the time being I'll try to find the corresponding compiler switch,
> > but this may only remove the warning, and other important warning may be
> > missed. Do you know whether the warning in Rtypes.h may result in real
> > trouble?
> >
> > Thanks,
> > Thomas.
> --
> Org:    CERN, European Laboratory for Particle Physics.
> Mail:   1211 Geneve 23, Switzerland
> E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
> WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480
>



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET