From e3afde92f9115558247aa0cd17b266f1b111c53b Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sun, 6 Dec 2020 11:51:11 +0500 Subject: [PATCH] Right place for CFLAGS --- .travis.yml | 2 +- Makefile.am | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 57f86c8..9add095 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,6 @@ compiler: script: - ./autogen.sh - - ./configure CFLAGS='-Werror -Wno-gnu-variable-sized-type-not-at-end' + - ./configure CFLAGS='-Werror' - make - make check diff --git a/Makefile.am b/Makefile.am index 652cdc0..7fc8ebc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,11 @@ SUBDIRS = include -AM_CFLAGS = -std=c99 -Wall -Wextra -I$(top_srcdir)/include +AM_CFLAGS = \ + -std=c99 \ + -Wall \ + -Wextra \ + -Wno-gnu-variable-sized-type-not-at-end \ + -I$(top_srcdir)/include lib_LIBRARIES = libkernaux.a