mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-30 12:44:07 +00:00
Disable -Werror by default. Enable it on Travis.
This commit is contained in:
parent
47a9f0de04
commit
033bc6bc45
|
@ -2,6 +2,7 @@ language: c
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
|
- KVZ_CONFIGURE_ARGS=--enable-werror
|
||||||
- TEST_DIM=264x130
|
- TEST_DIM=264x130
|
||||||
- TEST_FRAMES=10
|
- TEST_FRAMES=10
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ AC_CONFIG_HEADERS([config.h])
|
||||||
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
AC_CONFIG_AUX_DIR([build-aux])
|
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])
|
AM_SILENT_RULES([yes])
|
||||||
|
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
@ -88,9 +88,9 @@ CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
|
||||||
LIBS="$PTHREAD_LIBS $LIBS"
|
LIBS="$PTHREAD_LIBS $LIBS"
|
||||||
CC="$PTHREAD_CC"
|
CC="$PTHREAD_CC"
|
||||||
|
|
||||||
# --disable-werror
|
# --enable-werror
|
||||||
AC_ARG_ENABLE([werror], [AS_HELP_STRING([--disable-werror], [don't treat warnings as errors [no]])],
|
AC_ARG_ENABLE([werror], [AS_HELP_STRING([--enable-werror], [treat warnings as errors [no]])],
|
||||||
[], [CFLAGS="-Werror $CFLAGS"]
|
[CFLAGS="-Werror $CFLAGS"], []
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue