[vlc-commits] [Git][videolan/libvlcpp][master] 2 commits: Increase warning level

Hugo Beauzée-Luyssen gitlab at videolan.org
Wed Aug 31 11:50:51 CEST 2016


Hugo Beauzée-Luyssen pushed to branch master at videolan / libvlcpp


Commits:
5a8f54f0 by Hugo Beauzée-Luyssen at 2016-08-31T11:12:30+02:00
Increase warning level

- - - - -
438188bb by Hugo Beauzée-Luyssen at 2016-08-31T11:12:38+02:00
Add a --enable-werror configure flag

This is mostly aiming at failing our builds when a deprecated method is present

- - - - -


2 changed files:

- Makefile.am
- configure.ac


Changes:

=====================================
Makefile.am
=====================================
--- a/Makefile.am
+++ b/Makefile.am
@@ -27,9 +27,14 @@ pkgconfig_DATA = libvlcpp.pc
 if HAVE_EXAMPLES
 noinst_PROGRAMS = helloworld tests imem
 
-AM_CPPFLAGS = $(vlc_CFLAGS)
+AM_CPPFLAGS = $(vlc_CFLAGS) -Wextra -Wall
 AM_LDFLAGS = $(vlc_LIBS)
 
+if HAVE_WERROR
+# This is meant to make our builds fail if a deprecated method is present
+AM_CPPFLAGS += -Werror
+endif
+
 helloworld_SOURCES = examples/helloworld/main.cpp
 imem_SOURCES = examples/imem/imem.cpp
 tests_SOURCES = test/main.cpp


=====================================
configure.ac
=====================================
--- a/configure.ac
+++ b/configure.ac
@@ -19,6 +19,9 @@ AC_ARG_ENABLE(examples, AC_HELP_STRING([--enable-examples], [build examples prog
 AM_CONDITIONAL([HAVE_EXAMPLES], [test "${enable_examples}" = "yes"])
 AS_IF([test "${enable_examples}" = "yes"], [PKG_CHECK_MODULES(vlc, libvlc)])
 
+AC_ARG_ENABLE(werror, AC_HELP_STRING([--enable-werror], [build examples with -Werror]))
+AM_CONDITIONAL([HAVE_WERROR], [test "${enable_werror}" = "yes"])
+
 AC_CONFIG_FILES([
 Makefile
 libvlcpp.pc



View it on GitLab: https://code.videolan.org/videolan/libvlcpp/compare/ac7631117bdff7cb759102e3ecd962d2353da732...438188bb6231ec5786b4311d7e75507ba3b07af9
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-commits/attachments/20160831/0dbffd16/attachment-0001.html>


More information about the vlc-commits mailing list