Commit acb1cdf2 authored by Davis King's avatar Davis King

changed code to avoid a compiler warning

parent 3ecacdcc
......@@ -84,7 +84,11 @@ namespace dlib
private:
inline void check_image_type (const IplImage* img) const
inline void check_image_type (const IplImage*
#ifdef ENABLE_ASSERTS
img // the #ifdef is here to avoid an unused warning argument from the compiler
#endif
) const
{
DLIB_ASSERT( img->dataOrder == 0, "Only interleaved color channels are supported with cv_image");
DLIB_ASSERT((img->depth&0xFF)/8*img->nChannels == sizeof(pixel_type),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment