Remove [[ noreturn ]], MSVC14 doesn't yet support attributes?

This commit is contained in:
Jason Turner
2015-01-15 15:15:02 -07:00
parent f95ca75aca
commit 759d6fc42f
5 changed files with 12 additions and 12 deletions

View File

@@ -213,11 +213,11 @@ std::string get_next_command() {
// We have to wrap exit with our own because Clang has a hard time with
// function pointers to functions with special attributes (system exit being marked NORETURN)
void myexit [[ noreturn ]] (int return_val) {
void myexit(int return_val) {
exit(return_val);
}
void interactive [[ noreturn ]] (chaiscript::ChaiScript& chai)
void interactive(chaiscript::ChaiScript& chai)
{
using_history();
@@ -331,8 +331,8 @@ int main(int argc, char *argv[])
try {
switch ( mode ) {
case eInteractive:
// interactive never returns, no need for break;
interactive(chai);
break;
case eCommand:
val = chai.eval(arg);
break;