• Kir Kolyshkin's avatar
    Makefile: add -Wformat-security to CFLAGS · 00d48810
    Kir Kolyshkin authored
    Apparently when travis checks patches, it compiles code with
    -Wformat-security (most probably because the distro/gcc it uses
    has it on by default), but on my system (Fedora 24/gcc 6.1.1)
    this flag is not on. As a result, code compiles fine for me
    but travis reports an error.
    
    Add -Wformat-security to default CFLAGS. It helps to catch
    problems like using printf(str) instead of printf("%s", str).
    Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    00d48810
Makefile 7.79 KB