Board index » cppbuilder » W8080 declared but never used

W8080 declared but never used


2006-09-10 08:49:07 PM
cppbuilder23
When I do a Project->Make I get the list of warnings below. I have searched
for these variables but they are not in my project or project folder. The
line 27910 is the bottom of the Main.cpp. Where else might I look for the
cause of these warnings? Might these warnings be coming from one of the
third party components that I am using on my main form?
[C++ Warning] Main.cpp(27910): W8080 'NaN' is declared but never used
[C++ Warning] Main.cpp(27910): W8080 'Infinity' is declared but never used
[C++ Warning] Main.cpp(27910): W8080 'NegInfinity' is declared but never
used
[C++ Warning] Main.cpp(27910): W8080 'MinSingle' is declared but never used
[C++ Warning] Main.cpp(27910): W8080 'MaxSingle' is declared but never used
[C++ Warning] Main.cpp(27910): W8080 'MinDouble' is declared but never used
[C++ Warning] Main.cpp(27910): W8080 'MaxDouble' is declared but never used
[C++ Warning] Main.cpp(27910): W8080 'MinExtended' is declared but never
used
[C++ Warning] Main.cpp(27910): W8080 'MaxExtended' is declared but never
used
[C++ Warning] Main.cpp(27910): W8080 'MinComp' is declared but never used
[C++ Warning] Main.cpp(27910): W8080 'MaxComp' is declared but never used
Thanks
Larry Johnson.
 
 

Re:W8080 declared but never used

On Sun, 10 Sep 2006 07:49:07 -0500, "LarryJ" < XXXX@XXXXX.COM >
wrote:
Quote
cause of these warnings? Might these warnings be coming from one of the
nope, they came from borland supplied Math. you could create another
constant referencing all those borland constants (for example via +
operator) in your own source file in order to make compiler happy and
get rid of those warns
--
Vladimir Ulchenko aka vavan
 

Re:W8080 declared but never used

On Sun, 10 Sep 2006 07:49:07 -0500, "LarryJ" < XXXX@XXXXX.COM >
wrote:
Quote
When I do a Project->Make I get the list of warnings below. I have searched
for these variables but they are not in my project or project folder. The
line 27910 is the bottom of the Main.cpp. Where else might I look for the
cause of these warnings? Might these warnings be coming from one of the
third party components that I am using on my main form?


[C++ Warning] Main.cpp(27910): W8080 'NaN' is declared but never used
[C++ Warning] Main.cpp(27910): W8080 'Infinity' is declared but never used
[C++ Warning] Main.cpp(27910): W8080 'NegInfinity' is declared but never
used
[C++ Warning] Main.cpp(27910): W8080 'MinSingle' is declared but never used
[C++ Warning] Main.cpp(27910): W8080 'MaxSingle' is declared but never used
[C++ Warning] Main.cpp(27910): W8080 'MinDouble' is declared but never used
[C++ Warning] Main.cpp(27910): W8080 'MaxDouble' is declared but never used
[C++ Warning] Main.cpp(27910): W8080 'MinExtended' is declared but never
used
[C++ Warning] Main.cpp(27910): W8080 'MaxExtended' is declared but never
used
[C++ Warning] Main.cpp(27910): W8080 'MinComp' is declared but never used
[C++ Warning] Main.cpp(27910): W8080 'MaxComp' is declared but never used


Thanks
Larry Johnson.

Those variables are in <vcl/math.hpp>.
I had the same problem in BCB6, and had to modify the header changing
those variables from "static const Extended" to #defines. Really ugly,
but the header was ugly itself.
Finally, I changed tyhe algotohms I used just to get rid of #include
<Math.hpp>directly.
Regards,
Zara
 

{smallsort}

Re:W8080 declared but never used

Thanks. The Warnings are now removed.
"vavan" < XXXX@XXXXX.COM >wrote in message
Quote

--
Vladimir Ulchenko aka vavan