Remove FALLTHROUGH macro

Since this is requiring C++17 anyways there's no need for
it anymore.
This commit is contained in:
Martchus 2019-06-12 20:33:43 +02:00
parent 6c9a956a4f
commit 4e2539548d
2 changed files with 1 additions and 12 deletions

View File

@ -374,7 +374,7 @@ bool ArgumentReader::read(ArgumentVector &args)
switch (parser.m_unknownArgBehavior) { switch (parser.m_unknownArgBehavior) {
case UnknownArgumentBehavior::Warn: case UnknownArgumentBehavior::Warn:
cerr << Phrases::Warning << "The specified argument \"" << *argv << "\" is unknown and will be ignored." << Phrases::EndFlush; cerr << Phrases::Warning << "The specified argument \"" << *argv << "\" is unknown and will be ignored." << Phrases::EndFlush;
FALLTHROUGH; [[fallthrough]];
case UnknownArgumentBehavior::Ignore: case UnknownArgumentBehavior::Ignore:
// ignore unknown denotation // ignore unknown denotation
++index; ++index;

View File

@ -102,16 +102,5 @@
#define IF_DEBUG_BUILD(x) #define IF_DEBUG_BUILD(x)
#endif #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 #endif // APPLICATION_UTILITIES_GLOBAL_H