Browse Source

Remove FALLTHROUGH macro

Since this is requiring C++17 anyways there's no need for
it anymore.
sendfile
Martchus 2 years ago
parent
commit
4e2539548d
  1. 2
      application/argumentparser.cpp
  2. 11
      application/global.h

2
application/argumentparser.cpp

@ -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;

11
application/global.h

@ -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…
Cancel
Save