From f14af86aa11acfdf6833fe0f8349f2ad47bb1f6d Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 9 Sep 2019 22:36:21 +0200 Subject: build: add --enable-more-warnings configure flag - Remove -ansi from CFLAGS. - By default, CFLAGS: -Wall -Wcast-align -Wchar-subscripts -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wsign-compare -Wshadow - If --enable-more-warnings, add -Wextra to CFLAGS. - Requires autoconf-archive package. --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index dd0a8a42..b2faf62c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -64,6 +64,7 @@ env: requires: archlinux: # Useful URL: https://git.archlinux.org/svntogit/community.git/tree/marco/trunk/PKGBUILD + - autoconf-archive - clang - gcc - git @@ -83,6 +84,7 @@ requires: debian: # Useful URL: https://github.com/mate-desktop/debian-packages # Useful URL: https://salsa.debian.org/debian-mate-team/marco + - autoconf-archive - autopoint - clang - clang-tools @@ -117,6 +119,7 @@ requires: fedora: # Useful URL: https://src.fedoraproject.org/cgit/rpms/marco.git + - autoconf-archive - clang-analyzer - clang - cppcheck-htmlreport @@ -139,6 +142,7 @@ requires: - zenity ubuntu: + - autoconf-archive - autopoint - clang - clang-tools @@ -170,7 +174,7 @@ requires: - zenity variables: - - CFLAGS="-Wall -Werror=format-security" + - CFLAGS="-Wall -Wcast-align -Wchar-subscripts -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wsign-compare -Wshadow" - 'CHECKERS=" -enable-checker deadcode.DeadStores -enable-checker alpha.deadcode.UnreachableCode -- cgit v1.2.1