Discussion:
'identifier' is declared but never used (W8080)
(too old to reply)
PVGolez
2008-07-09 03:04:47 UTC
Permalink
Hi,

I'm just wondering why the warnings below appear in all build output
of all my project's compiled cpp files (except TheMainProjectFile.cpp):

[BCC32 Warning] caisdmod.cpp(2022): W8080 'OneHour' is declared but never
used
[BCC32 Warning] caisdmod.cpp(2022): W8080 'OneMinute' is declared but
never used
[BCC32 Warning] caisdmod.cpp(2022): W8080 'OneSecond' is declared but
never used
[BCC32 Warning] caisdmod.cpp(2022): W8080 'OneMillisecond' is declared but
never used

It's ok if I couldn't get rid of these warnings but I just wanted to know
why
these variables [declared] in $(BDS)\include\vcl\DateUtils.hpp pops up in
the
build message of BCB 2007.

Philton
Chris Uzdavinis (TeamB)
2008-07-09 16:27:19 UTC
Permalink
Post by PVGolez
Hi,
I'm just wondering why the warnings below appear in all build output
[BCC32 Warning] caisdmod.cpp(2022): W8080 'OneHour' is declared but never
used
[BCC32 Warning] caisdmod.cpp(2022): W8080 'OneMinute' is declared but
never used
[BCC32 Warning] caisdmod.cpp(2022): W8080 'OneSecond' is declared but
never used
[BCC32 Warning] caisdmod.cpp(2022): W8080 'OneMillisecond' is declared but
never used
It's ok if I couldn't get rid of these warnings but I just wanted to
know why these variables [declared] in
$(BDS)\include\vcl\DateUtils.hpp pops up in the build message of BCB
2007.
It probably doesn't distinguish between system-supplied files and
user-provided files. So if something causes a warning, it gets
reported to you even if you didn't write it.
--
Chris (TeamB);
PVGolez
2008-07-10 00:54:22 UTC
Permalink
Post by Chris Uzdavinis (TeamB)
Post by PVGolez
Hi,
I'm just wondering why the warnings below appear in all build output
[BCC32 Warning] caisdmod.cpp(2022): W8080 'OneHour' is declared but never
used
[BCC32 Warning] caisdmod.cpp(2022): W8080 'OneMinute' is declared but
never used
[BCC32 Warning] caisdmod.cpp(2022): W8080 'OneSecond' is declared but
never used
[BCC32 Warning] caisdmod.cpp(2022): W8080 'OneMillisecond' is declared but
never used
It's ok if I couldn't get rid of these warnings but I just wanted to
know why these variables [declared] in
$(BDS)\include\vcl\DateUtils.hpp pops up in the build message of BCB
2007.
It probably doesn't distinguish between system-supplied files and
user-provided files. So if something causes a warning, it gets
reported to you even if you didn't write it.
--
Chris (TeamB);
Gee thanks!

Either way it's nice to know that the BCC32 is doing a great job.
As the saying goes, "Don't ignore warnings." :)

Philton

Loading...