nginx-util: do not use fallthrough attribute
[feed/packages.git] / net / nginx-util / src / nginx-ssl-util.hpp
index 4f12925db8eb6234b29ef4460a22f462fdf2703b..5a64b000a847c1d217bd04bf22630b8bc463bb1f 100644 (file)
@@ -166,9 +166,14 @@ static constexpr auto _escape = _Line{
         std::string ret{};
         for (char c : strptr) {
             switch (c) {
-                case '^': ret += '\\'; [[fallthrough]];
-                case '_': [[fallthrough]];
-                case '-': ret += c; break;
+                case '^':
+                    ret += '\\';
+                    ret += c;
+                    break;
+                case '_':
+                case '-':
+                    ret += c;
+                    break;
                 default:
                     if ((isalpha(c) != 0) || (isdigit(c) != 0)) {
                         ret += c;