mirror of
https://github.com/inspircd/inspircd.git
synced 2025-04-01 13:50:04 -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
|
// If no custom translator was given, fall through
|
||||||
}
|
}
|
||||||
/*@fallthrough@*/
|
[[fallthrough]];
|
||||||
default:
|
default:
|
||||||
/* Do nothing */
|
/* Do nothing */
|
||||||
dest.append(item);
|
dest.append(item);
|
||||||
|
@ -362,7 +362,7 @@ struct Parser
|
|||||||
case 0xFE:
|
case 0xFE:
|
||||||
case 0xFF:
|
case 0xFF:
|
||||||
stack.errstr << "Do not save your files as UTF-16 or UTF-32, use UTF-8!\n";
|
stack.errstr << "Do not save your files as UTF-16 or UTF-32, use UTF-8!\n";
|
||||||
/*@fallthrough@*/
|
[[fallthrough]];
|
||||||
default:
|
default:
|
||||||
throw CoreException("Syntax error - start of tag expected");
|
throw CoreException("Syntax error - start of tag expected");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user