mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
nginx-util: do not use fallthrough attribute
fixes issue #15653 Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=nginx-util
|
PKG_NAME:=nginx-util
|
||||||
PKG_VERSION:=1.5
|
PKG_VERSION:=1.6
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
PKG_MAINTAINER:=Peter Stadler <peter.stadler@student.uibk.ac.at>
|
PKG_MAINTAINER:=Peter Stadler <peter.stadler@student.uibk.ac.at>
|
||||||
|
|
||||||
|
|||||||
@@ -166,9 +166,14 @@ static constexpr auto _escape = _Line{
|
|||||||
std::string ret{};
|
std::string ret{};
|
||||||
for (char c : strptr) {
|
for (char c : strptr) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case '^': ret += '\\'; [[fallthrough]];
|
case '^':
|
||||||
case '_': [[fallthrough]];
|
ret += '\\';
|
||||||
case '-': ret += c; break;
|
ret += c;
|
||||||
|
break;
|
||||||
|
case '_':
|
||||||
|
case '-':
|
||||||
|
ret += c;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
if ((isalpha(c) != 0) || (isdigit(c) != 0)) {
|
if ((isalpha(c) != 0) || (isdigit(c) != 0)) {
|
||||||
ret += c;
|
ret += c;
|
||||||
|
|||||||
Reference in New Issue
Block a user