]> granicus.if.org Git - apache/commit
Various code cleanup to avoid compiler, cppcheck, or clang warnings:
authorStefan Fritsch <sf@apache.org>
Sun, 18 Dec 2011 18:02:21 +0000 (18:02 +0000)
committerStefan Fritsch <sf@apache.org>
Sun, 18 Dec 2011 18:02:21 +0000 (18:02 +0000)
commit0bbad651c40ba7b54d1603ed254ae134b9a03db8
tree0498242db46ba075e304bc5b5ae9d0c1816bd6bb
parenta52506a0e47cd8d1df525d00104606e14a06d7c7
Various code cleanup to avoid compiler, cppcheck, or clang warnings:

modules/filters/mod_charset_lite.c: Remove dead assignments

modules/filters/mod_include.c: likewise

modules/metadata/mod_usertrack.c: likewise

modules/proxy/mod_proxy_ftp.c: likewise

modules/ssl/ssl_engine_pphrase.c: likewise

modules/proxy/mod_proxy_balancer.c: likewise;
                                    Remove NULL check that can never happen

modules/proxy/proxy_util.c: Axe NULL-check that can never happen and if it
                            would, it would just mask another bug

os/unix/unixd.c: likewise

modules/http/http_filters.c: Remove sub-condition that is always true

modules/lua/mod_lua.c: Add default cases to switch statements

modules/generators/mod_autoindex.c: Unsigned value can never be < 0

server/util_expr_eval.c: Fix compiler warnings with VC and on OS2

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1220509 13f79535-47bb-0310-9956-ffa450edef68
12 files changed:
modules/filters/mod_charset_lite.c
modules/filters/mod_include.c
modules/generators/mod_autoindex.c
modules/http/http_filters.c
modules/lua/mod_lua.c
modules/metadata/mod_usertrack.c
modules/proxy/mod_proxy_balancer.c
modules/proxy/mod_proxy_ftp.c
modules/proxy/proxy_util.c
modules/ssl/ssl_engine_pphrase.c
os/unix/unixd.c
server/util_expr_eval.c