Skip to content

Commit

Permalink
Merge pull request #19075 from ghalliday/issue32598
Browse files Browse the repository at this point in the history
HPCC-32598 Fix build break caused by -Werror=implicit-fallthrough

Reviewed-By: Attila Vamos <attila.vamos@gmail.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merged-by: Gavin Halliday <ghalliday@hpccsystems.com>
  • Loading branch information
ghalliday authored Sep 5, 2024
2 parents 8372412 + a71adf6 commit 5aef331
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/remote/rmtsmtp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class CSMTPValidator
return ret;
}

void fail(char const * msg)
[[noreturn]] void fail(char const * msg)
{
throw MakeStringException(0, "bad %s (%s at character %u): %s", label, msg, (unsigned) (finger-value), value);
}
Expand Down
2 changes: 1 addition & 1 deletion common/remote/rmtssh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class CFRunSSH: public CInterface, implements IFRunSSH
password.set(parm);
break;
}
// continue
[[fallthrough]];
default:
throw MakeStringException(-1,"Unknown option %s",argv[i]);
}
Expand Down

0 comments on commit 5aef331

Please sign in to comment.