You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by GitBox <gi...@apache.org> on 2022/08/21 21:39:19 UTC
[GitHub] [trafficserver] SolidWallOfCode commented on pull request #9018: dns error logging to diags
SolidWallOfCode commented on PR #9018:
URL: https://github.com/apache/trafficserver/pull/9018#issuecomment-1221625687
It is also very standard (from the early days of C coding, which I remember personally) to omit `break` for cases that have completely identical code, as in this situation.
Also note that for C++17 there is now an standard keyword that should (must?) be used for fallthrough in `switch` statements. E.g.
```
switch (value) {
case 0:
// code ...
[[fallthrough]];
case 1:
// code ...
```
See [here](https://en.cppreference.com/w/cpp/language/attributes/fallthrough). Note the style for `case 1:` and `case 2:` in the example.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org