Disable -Werror by default. Enable it on Travis.

This commit is contained in:
Ari Lemmetti 2017-04-11 13:11:18 +03:00
parent 47a9f0de04
commit 033bc6bc45
2 changed files with 5 additions and 4 deletions

View file

@ -2,6 +2,7 @@ language: c
env:
global:
- KVZ_CONFIGURE_ARGS=--enable-werror
- TEST_DIM=264x130
- TEST_FRAMES=10

View file

@ -32,7 +32,7 @@ AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([-Wall -Werror dist-bzip2 dist-xz foreign subdir-objects])
AM_INIT_AUTOMAKE([-Wall dist-bzip2 dist-xz foreign subdir-objects])
AM_SILENT_RULES([yes])
AC_PROG_CC
@ -88,9 +88,9 @@ CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
LIBS="$PTHREAD_LIBS $LIBS"
CC="$PTHREAD_CC"
# --disable-werror
AC_ARG_ENABLE([werror], [AS_HELP_STRING([--disable-werror], [don't treat warnings as errors [no]])],
[], [CFLAGS="-Werror $CFLAGS"]
# --enable-werror
AC_ARG_ENABLE([werror], [AS_HELP_STRING([--enable-werror], [treat warnings as errors [no]])],
[CFLAGS="-Werror $CFLAGS"], []
)