mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-30 21:00:03 -04:00
Switch to the C++17 fallthrough attribute.
This commit is contained in:
parent
30e7e13298
commit
0a6241a388
@ -428,7 +428,7 @@ void CommandParser::TranslateSingleParam(TranslateType to, const std::string& it
|
||||
}
|
||||
// If no custom translator was given, fall through
|
||||
}
|
||||
/*@fallthrough@*/
|
||||
[[fallthrough]];
|
||||
default:
|
||||
/* Do nothing */
|
||||
dest.append(item);
|
||||
|
@ -362,7 +362,7 @@ struct Parser
|
||||
case 0xFE:
|
||||
case 0xFF:
|
||||
stack.errstr << "Do not save your files as UTF-16 or UTF-32, use UTF-8!\n";
|
||||
/*@fallthrough@*/
|
||||
[[fallthrough]];
|
||||
default:
|
||||
throw CoreException("Syntax error - start of tag expected");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user