]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: do not specify "const" on functions returning structs or scalars
authorWilly Tarreau <w@1wt.eu>
Mon, 15 Apr 2019 19:27:18 +0000 (21:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 15 Apr 2019 19:55:48 +0000 (21:55 +0200)
commit8de1df92a3d6413dcd4796c954dba8bf8589833b
treeaaf4e778fa69ab8889333508fc9ac1309d37ab68
parent0e492e2ad01528f24859992e48b543e0a6b4b3e7
BUILD: do not specify "const" on functions returning structs or scalars

Older compilers (like gcc-3.4) warn about the use of "const" on functions
returning a struct, which makes sense since the return may only be copied :

  include/common/htx.h:233: warning: type qualifiers ignored on function return type

Let's simply drop "const" here.
include/common/http.h
include/common/htx.h
src/http.c