VC 7.1 and massive (repeating) warning messages 
Author Message
 VC 7.1 and massive (repeating) warning messages

Could somebody explain why this is happening ?  This is the warning
produced from a 'single' line of code [ CStackDump.cpp(415) ]
Notice it displays the *exact* same message 6 times per line in stdexcept.


CStackDump.cpp
T:\products\common\src\i3baselib\CStackDump.cpp(415) : warning C4800:
'unsigned long' : forcing value to bool
'true' or 'false' (performance warning)

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(138) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(138) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(138) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(138) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(138) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(138) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(130) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(130) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(130) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(130) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(130) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(130) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(122) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(122) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(122) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(122) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(122) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(122) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(114) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(114) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(114) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(114) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(114) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(114) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(106) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(106) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(106) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(106) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(106) : see
reference to class template in
stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
         with
         [
             _CharT=char,
             _Traits=_STL::char_traits<char>,
             _Alloc=_STL::allocator<char>
         ]

t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(106) : see ...

read more »



Mon, 17 Oct 2005 06:57:54 GMT  
 VC 7.1 and massive (repeating) warning messages

Quote:

>Could somebody explain why this is happening ?  This is the warning
>produced from a 'single' line of code [ CStackDump.cpp(415) ]
>Notice it displays the *exact* same message 6 times per line in stdexcept.


>CStackDump.cpp
>T:\products\common\src\i3baselib\CStackDump.cpp(415) : warning C4800:
>'unsigned long' : forcing value to bool
>'true' or 'false' (performance warning)

>t:\products\external\stlport\stlport-4.5.3\stlport\stdexcept(138) : see
>reference to class template in
>stantiation '_STL::basic_string<_CharT,_Traits,_Alloc>' being compiled
>         with
>         [
>             _CharT=char,
>             _Traits=_STL::char_traits<char>,
>             _Alloc=_STL::allocator<char>
>         ]

Did you look at the code which is provoking the warning? If the warning's
legit (and even if it isn't), you have two choices:

1. #pragma warning(disable:4800)
2. Change the code to avoid the warning. It sounds like it's doing something
like:

 // y is unsigned long
 bool x = y;
 // Change to:
 bool x = y != 0;

--
Doug Harrison
Microsoft MVP - Visual C++



Thu, 20 Oct 2005 01:54:07 GMT  
 VC 7.1 and massive (repeating) warning messages
Yes, I know it can be turned off.  The point is that a single warning
generated >hundreds< of lines of *repeated* messages from VC 7.1.
I see this as a pretty significant bug, I'm surprised no one else has
mentioned it.


Sun, 23 Oct 2005 22:18:12 GMT  
 VC 7.1 and massive (repeating) warning messages
Hi Patrick,
Could you email me a preprocessed file + command line to reproduce this
problem? We'll take a look.

--
Keiji Oenoki
Visual C++ Team
This posting is provided AS IS with no warranties, and confers no rights.



Tue, 25 Oct 2005 01:53:54 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Problem to convert from VC 6.0 to VC 7.1 because of using filebuf::setmode()

2. Slower compilation with VC Net 2003 (7.1) when compared to VC Net 7.0

3. ICE with vc 7.1 and simple spirit grammar

4. VC 7.1 seems to ignore typedef in template

5. Conversion from VC 7.0 to 7.1

6. VC 7.1 ICE

7. VC 7.1 - can't find correct MFC sources during debugging

8. VC 7.1 template friend problem

9. VC 7.1 Macro bug!

10. VC 7.1 final beta: bug with template template parameters

11. Any updates in ATL/ATL Server in VC 7.1

12. Will VC 7.1 have Service Packs?

 

 
Powered by phpBB® Forum Software