[ROOT] Compilation warnings on 3.03/06

From: Pere Mato Vila (Pere.Mato@cern.ch)
Date: Wed Jul 17 2002 - 19:45:00 MEST


Dear rooters,

  I noticed that this new version of ROOT produces more compilation
warnings than before. Here are some of them.

A) On Linux RH6.1 gcc 2.95.2 with "-D_GNU_SOURCE -Dlinux -Dunix -pipe
-ansi -Wall"

/afs/cern.ch/sw/packages/ROOT/v3.03.06/rh61_gcc2952/root/include/TMath.h
:319: warning: `isnan' redefined
/usr/include/math.h:217: warning: this is the location of the previous
definition library

/afs/cern.ch/sw/packages/ROOT/v3.03.06/rh61_gcc2952/root/include/TH3.h:3
7: warning: unused parameter `Stat_t w'

/afs/cern.ch/sw/packages/ROOT/v3.03.06/rh61_gcc2952/root/include/TH3.h:3
8: warning: unused parameter `Axis_t y'

/afs/cern.ch/sw/packages/ROOT/v3.03.06/rh61_gcc2952/root/include/TH3.h:7
8: warning: unused parameter`const Option_t * option'

/afs/cern.ch/sw/packages/ROOT/v3.03.06/rh61_gcc2952/root/include/TH1.h:2
51: warning: unused parameter `Int_t n'

/afs/cern.ch/sw/packages/ROOT/v3.03.06/rh61_gcc2952/root/include/TH2.h:4
0: warning: unused parameter `Stat_t w'

/afs/cern.ch/sw/packages/ROOT/v3.03.06/rh61_gcc2952/root/include/TH2.h:7
6: warning: unused parameter `const Option_t * option'

/afs/cern.ch/sw/packages/ROOT/v3.03.06/rh61_gcc2952/root/include/TH2.h:7
8: warning: unused parameter `const Option_t * option'

/afs/cern.ch/sw/packages/ROOT/v3.03.06/rh61_gcc2952/root/include/TLeaf.h
:77: warning: unused parameter `Int_t i'

B) On Windows VC++ 6.0
S:/sw/ROOT/v3.03.06/nt4/root/include\Bytes.h(205) : warning C4800:
'unsigned char' : forcing value to bool 'true' or 'false' (performance
warning)

S:/sw/ROOT/v3.03.06/nt4/root/include\TROOT.h(190) : warning C4800:
'const int' : forcing value to bool 'true' or 'false' (performance
warning)

------------------------------------------------------------
Pere Mato  CERN, EP Division, CH 1211 Geneva 23, Switzerland
           e-mail: Pere.Mato@cern.ch    tel: +41 22 76 78696
           fax:  +41 22 76 79425        gsm: +41 79 20 10855

 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:00 MET