packaging: fix build error by Werror 91/109091/1 accepted/tizen/common/20170109.202413 accepted/tizen/ivi/20170109.084405 accepted/tizen/mobile/20170109.084306 accepted/tizen/tv/20170109.084324 accepted/tizen/wearable/20170109.084345 submit/tizen/20170109.021416
authorJiyong Min <jiyong.min@samsung.com>
Mon, 9 Jan 2017 00:49:45 +0000 (09:49 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Mon, 9 Jan 2017 00:50:37 +0000 (09:50 +0900)
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 <jiyong.min@samsung.com>
packaging/libmm-fileinfo.spec

index be6c948..8fb7551 100755 (executable)
@@ -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 \