Re: More unused variable warnings in libdar header

Denis Corbin <[email protected]> Sun, 21 Nov 2004 23:32:51 +0100
Newsgroups gmane.comp.sysutils.backup.dar.libdar
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Johnathan Burchill wrote:
| Hi Denis,

Hello Johnathan,

|
| I get these warning messages when compiling KDar:
|
| /usr/local/include/dar/user_interaction.hpp:125: warning: unused
parameter
| ` const std::string&flag'
| /usr/local/include/dar/user_interaction.hpp:125: warning: unused
parameter
| ` const std::string&perm'
| /usr/local/include/dar/user_interaction.hpp:125: warning: unused
parameter
| ` const std::string&uid'
| /usr/local/include/dar/user_interaction.hpp:125: warning: unused
parameter
| ` const std::string&gid'
| /usr/local/include/dar/user_interaction.hpp:125: warning: unused
parameter
| ` const std::string&size'
| /usr/local/include/dar/user_interaction.hpp:125: warning: unused
parameter
| ` const std::string&date'
| /usr/local/include/dar/user_interaction.hpp:125: warning: unused
parameter
| ` const std::string&filename'
| /usr/local/include/dar/user_interaction.hpp:125: warning: unused
parameter
| ` bool is_dir'
| /usr/local/include/dar/user_interaction.hpp:125: warning: unused
parameter
| ` bool has_children'
| linking kdar (libtool)

yes, this is normal, the virtual method "listing()" is implemented by an
empty body in the pure virtual class "user_interaction" (this is expected).

I have added some control code that uses all the arguments, so libdar
will be more explicit (in case a user application calls this method
without having overwritten it in the inherited class) and the C++
compilers should no more complain. :-)

By the way, with which compiler and with which options do you generate
theses warnings ?

|
| Cheers,
| JB

Cheers,
Denis.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBoReSpC5CI8gYGlIRAhl2AKC+zh1IQJX+sqHTZ5sOPs+/mm1hJACcCg0P
rLLbOF5kGeKQG0aNxvDanMc=
=x6f3
-----END PGP SIGNATURE-----



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/