]> git.ipfire.org Git - thirdparty/lxc.git/commit
compiler: -Werror=shift-overflow=2 hardening
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 5 Feb 2019 22:48:32 +0000 (23:48 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 5 Feb 2019 22:48:32 +0000 (23:48 +0100)
commitfcfce08abac5cf1271bc3034d4017d4a714154cc
treeaaaa971ed3e6ececa822c129bd10dd372d43e035
parent463bee7b8d76b299c5c5c24c27830df80b9f2b84
compiler: -Werror=shift-overflow=2 hardening

Warn about left shift overflows. This warning is enabled by default in
C99 and C++11 modes (and newer).

-Wshift-overflow=2
This warning level also warns about left-shifting 1 into the sign bit,
unless C++14 mode (or newer) is active.

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