[Box Backup-dev] Cannot compile Timer.cpp on FreeBSD or Solaris

Chris Wilson boxbackup-dev@fluffy.co.uk
Mon, 22 Oct 2007 21:05:39 +0100 (BST)


Hi James,

On Mon, 22 Oct 2007, James O'Gorman wrote:

> It still reports this though:
>
> Timer.cpp: In static member function `static void Timers::Cleanup()':
> Timer.cpp:77: warning: unused variable 'result'

That variable is only used in debug mode (in an assertion). Not sure how 
to suppress that warning cleanly.

> Similarly in BackupStoreFile.cpp it reports unused variable 'drained' at 
> line 299, but continues without failure.

That one may be useful for debugging, although there's no assertion on it 
at the moment. I left a few more "unused" variables around as well, for 
the moment.

Cheers, Chris.
-- 
_____ __     _
\  __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |