[Insight-developers] Fix warning - itkMutexLock.h

Nicolas Rannou nicolas_rannou at hms.harvard.edu
Fri Jul 30 10:23:48 EDT 2010


Hello,

For several days, there has been the following warning showing up on our
dashboard (http://my.cdash.org/viewBuildError.php?type=1&buildid=85248)
-------------------
Insight/Code/Common/itkMutexLock.h:98: warning: type qualifiers ignored
on function return type
-------------------

Would it be possible to fix it?
return *(const_cast<MutexType*>(&m_MutexLock));
instead of
return m_MutexLock
should do the trick.

Thanks,

    Nicolas



More information about the Insight-developers mailing list