Trivial correction

stephanstephan Stephan StapelOrganization: Stephan StapelProject: BristolNGMember ✭✭✭
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

  • michimichi Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-)Member ✭✭✭
    What compiler are you seeing this warning with? I don't recall a warning from any of the compilers we use...

    Cheers,

    Michi.
  • stephanstephan Stephan StapelOrganization: Stephan StapelProject: BristolNGMember ✭✭✭
    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
  • michimichi Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-)Member ✭✭✭
    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.
Sign In or Register to comment.