mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Merge pull request #21039 from SegaraRai:use-pragma-message
This commit is contained in:
commit
b48eb4e88b
@ -31,7 +31,11 @@ namespace internal
|
|||||||
#if defined(__GXX_RTTI) || defined(_CPPRTTI)
|
#if defined(__GXX_RTTI) || defined(_CPPRTTI)
|
||||||
return dynamic_cast<T>(operand);
|
return dynamic_cast<T>(operand);
|
||||||
#else
|
#else
|
||||||
#warning used static cast instead of dynamic because RTTI is disabled
|
#ifdef __GNUC__
|
||||||
|
#warning used static cast instead of dynamic because RTTI is disabled
|
||||||
|
#else
|
||||||
|
#pragma message("WARNING: used static cast instead of dynamic because RTTI is disabled")
|
||||||
|
#endif
|
||||||
return static_cast<T>(operand);
|
return static_cast<T>(operand);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user