From: Dongkyun, Son Date: Tue, 1 Nov 2016 10:43:35 +0000 (+0900) Subject: fix error by [-Werror=coverage-mismatch] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F11%2F113111%2F1;p=platform%2Fupstream%2Fxz.git fix error by [-Werror=coverage-mismatch] conftest.c: In function 'main': conftest.c:46:1: error: the control flow of function 'main' does not match its profile data (counter 'arcs') [-Werror=coverage-mismatch] -Wno-coverage-mismatch Warn if feedback profiles do not match when using the -fprofile-use option. If a source file is changed between compiling with -fprofile-gen and with -fprofile-use, the files with the profile feedback can fail to match the source file and GCC cannot use the profile feedback information. By default, this warning is enabled and is treated as an error. -Wno-coverage-mismatch can be used to disable the warning or -Wno-error=coverage-mismatch can be used to disable the error. Disabling the error for this warning can result in poorly optimized code and is useful only in the case of very minor changes such as bug fixes to an existing code-base. Completely disabling the warning is not recommended. Change-Id: I7b48d8c3d3a05a5c4c83a8d32f4304a0797af2c2 Signed-off-by: Dongkyun, Son --- diff --git a/packaging/xz.spec b/packaging/xz.spec index 23d7930..5090067 100644 --- a/packaging/xz.spec +++ b/packaging/xz.spec @@ -80,7 +80,7 @@ export PTHREAD_LIBS=" -lpthread " %if %{do_profiling} time %__make check %__make clean -export CFLAGS="%{optflags} %{cflags_profile_feedback}=$profiledir" +export CFLAGS="%{optflags} %{cflags_profile_feedback}=$profiledir -Wno-coverage-mismatch" %configure --disable-static --with-pic --docdir=%{_docdir}/%{name} %__make %{?_smp_mflags} %endif