Fix MSVC compiler warning
reg. 'FALLTHROUGH': macro redefinition (C4005)
This commit is contained in:
parent
513c4f9772
commit
92b1a7c872
1 changed files with 1 additions and 0 deletions
|
@ -89,6 +89,7 @@ SOFTWARE.
|
|||
#define NOT_SUPPORTED_USE(use) LOGW() << "Not supported!! Use:" << use
|
||||
|
||||
#if __has_cpp_attribute(fallthrough)
|
||||
#undef FALLTHROUGH
|
||||
#define FALLTHROUGH [[fallthrough]]
|
||||
#else
|
||||
#define FALLTHROUGH (void)0
|
||||
|
|
Loading…
Reference in a new issue