From: Jiyong Min Date: Mon, 9 Jan 2017 00:49:45 +0000 (+0900) Subject: packaging: fix build error by Werror X-Git-Tag: accepted/tizen/common/20170109.202413^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15c5143166cd9453dd39ec8a587a58efa072bfea;p=platform%2Fcore%2Fmultimedia%2Flibmm-fileinfo.git packaging: fix build error by Werror Different semantics for inline functions While -std=gnu89 employs the GNU89 inline semantics, -std=gnu11 uses the C99 inline semantics. The C99 inline semantics requires that if a function with external linkage is declared with inline function specifier, it also has to be defined in the same translation unit (TU). Consequently, GCC now warns if it sees a TU such as the following: inline int foo (void); This example now gives the following diagnostic: f.c:1:12: warning: inline function 'foo' declared but never defined inline int foo (void); Change-Id: I01405d2b7820e32400d5ec193c073c7ce6e1a50a Signed-off-by: jiyong.min --- diff --git a/packaging/libmm-fileinfo.spec b/packaging/libmm-fileinfo.spec index be6c948..8fb7551 100755 --- a/packaging/libmm-fileinfo.spec +++ b/packaging/libmm-fileinfo.spec @@ -1,6 +1,6 @@ Name: libmm-fileinfo Summary: Media Fileinfo -Version: 0.6.55 +Version: 0.6.56 Release: 0 Group: System/Libraries License: Apache-2.0 @@ -38,7 +38,7 @@ cp %{SOURCE1001} . export CFLAGS+=" -Wextra -Wno-array-bounds" export CFLAGS+=" -Wno-ignored-qualifiers -Wno-unused-parameter -Wshadow" export CFLAGS+=" -Wwrite-strings -Wswitch-default -Werror" -export CFLAGS+=" -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast" +export CFLAGS+=" -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -fgnu89-inline" ./autogen.sh %reconfigure \