< prev index next >

make/autoconf/flags-cflags.m4

Print this page

        

@@ -148,11 +148,17 @@
     WARNINGS_AS_ERRORS=true
   elif test "x$enable_warnings_as_errors" = "xno"; then
     AC_MSG_RESULT([no (explicitly set)])
     WARNINGS_AS_ERRORS=false
   elif test "x$enable_warnings_as_errors" = "x"; then
+    # gcc might produce false positive results when code coverage is enabled
+    if test "x$enable_native_coverage" = "xyes" && test "x$TOOLCHAIN_TYPE" = "xgcc"; then
+      AC_MSG_RESULT([no (disabled for native code coverage)])
+      WARNINGS_AS_ERRORS=false
+    else
     AC_MSG_RESULT([${WARNINGS_AS_ERRORS} (default)])
+    fi
   else
     AC_MSG_ERROR([--enable-warnings-as-errors accepts no argument])
   fi
 
   AC_SUBST(WARNINGS_AS_ERRORS)
< prev index next >