summaryrefslogtreecommitdiff
path: root/src/sock_addr.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-12-16 04:51:14 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2020-12-16 05:16:25 -0500
commit76faed9145c278d38e23d66ceb10773f369f5fd5 (patch)
treeb0db27127252174b4986d06645d08e812197e175 /src/sock_addr.c
parentfefdf7f0974f6d667d3c232dca5bd7a8508581ef (diff)
downloadlighttpd-git-76faed9145c278d38e23d66ceb10773f369f5fd5.tar.gz
[multiple] replace fall through comment with attr
replace /* fall through */ comment with __attribute_fallthrough__ macro Note: not adding attribute to code with external origins: xxhash.h (algo_xxhash.h) ls-hpack/lshpack.c so to avoid warnings, may need to compile with -Wno-implicit-fallthrough
Diffstat (limited to 'src/sock_addr.c')
-rw-r--r--src/sock_addr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sock_addr.c b/src/sock_addr.c
index 405e6b89..f424ec9b 100644
--- a/src/sock_addr.c
+++ b/src/sock_addr.c
@@ -426,7 +426,7 @@ int sock_addr_from_str_hints(sock_addr * const restrict saddr, socklen_t * const
return 1;
}
#else
- /* fall through */
+ __attribute_fallthrough__
#endif
#ifdef HAVE_IPV6
case AF_INET6: