]> granicus.if.org Git - libvpx/commitdiff
Enable -Wundef by default
authorJohann <johannkoenig@google.com>
Thu, 1 Sep 2016 05:17:38 +0000 (22:17 -0700)
committerJohann <johannkoenig@google.com>
Thu, 1 Sep 2016 06:01:57 +0000 (23:01 -0700)
BUG=webm:1069

Change-Id: I43728f9fd007542718a55d5fdcbc63a8d2f86682

configure

index e88e5698c261bedc9db15b46f8bddd7b08573cca..638e197509ff64bc8d02d8770674484c8016c784 100755 (executable)
--- a/configure
+++ b/configure
@@ -574,6 +574,9 @@ process_toolchain() {
         check_add_cflags -Wimplicit-function-declaration
         check_add_cflags -Wuninitialized
         check_add_cflags -Wunused
+        # check_add_cflags also adds to cxxflags. gtest does not do well with
+        # -Wundef so add it explicitly to CFLAGS only.
+        check_cflags -Wundef && add_cflags_only -Wundef
         case ${CC} in
           *clang*)
               # libvpx and/or clang have issues with aliasing: