Archived

This forum has been archived. Please start a new discussion on GitHub.

Trivial correction

Hi there!

As my compiler warnings always take some nerve, would you like to add a little trivial line to Mutex::unlock() ?


inline void
Mutex::unlock(LockState& state) const
{
(void)state; // <<
this line
LeaveCriticalSection(&_mutex);
}



:)

thanks,

Stephan

Comments

  • What compiler are you seeing this warning with? I don't recall a warning from any of the compilers we use...

    Cheers,

    Michi.
  • What compiler are you seeing this warning with? I don't recall a warning from any of the compilers we use...

    The compiler is VS7.1 with /W3. But nothing to worry about :)

    Stephan
  • Originally posted by stephan
    The compiler is VS7.1 with /W3.

    I don't recall ever having seen a warning with that. I'll check and fix it, if need be.

    Cheers,

    Michi.