]> git.proxmox.com Git - mirror_lxc.git/commit - configure.ac
compiler: -Werror=return-type hardening
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 5 Feb 2019 19:48:45 +0000 (20:48 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 5 Feb 2019 21:36:31 +0000 (22:36 +0100)
commit13311d70fe3061f98c3feb502a1dee787454e33d
tree3b4475ab0afa4a609453890b02058041d21d1908
parente3b4674d44ee6da22c091fd154b6ff62123d3aa2
compiler: -Werror=return-type hardening

Warn whenever a function is defined with a return type that defaults to
int. Also warn about any return statement with no return value in a
function whose return type is not void (falling off the end of the
function body is considered returning without a value).

For C only, warn about a return statement with an expression in a
function whose return type is void, unless the expression type is also
void. As a GNU extension, the latter case is accepted without a warning
unless -Wpedantic is used.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
configure.ac