Remove FALLTHROUGH macro
Since this is requiring C++17 anyways there's no need for it anymore.
This commit is contained in:
parent
6c9a956a4f
commit
4e2539548d
|
@ -374,7 +374,7 @@ bool ArgumentReader::read(ArgumentVector &args)
|
|||
switch (parser.m_unknownArgBehavior) {
|
||||
case UnknownArgumentBehavior::Warn:
|
||||
cerr << Phrases::Warning << "The specified argument \"" << *argv << "\" is unknown and will be ignored." << Phrases::EndFlush;
|
||||
FALLTHROUGH;
|
||||
[[fallthrough]];
|
||||
case UnknownArgumentBehavior::Ignore:
|
||||
// ignore unknown denotation
|
||||
++index;
|
||||
|
|
|
@ -102,16 +102,5 @@
|
|||
#define IF_DEBUG_BUILD(x)
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* \def FALLTHROUGH
|
||||
* \brief Prevents clang from warning about missing break in switch-case.
|
||||
* \remarks Does nothing if another compiler is used.
|
||||
*/
|
||||
|
||||
#ifdef __clang__
|
||||
#define FALLTHROUGH [[clang::fallthrough]]
|
||||
#else
|
||||
#define FALLTHROUGH
|
||||
#endif
|
||||
|
||||
#endif // APPLICATION_UTILITIES_GLOBAL_H
|
||||
|
|
Loading…
Reference in New Issue