Remove unused static variable to fix build error 56/117756/1 accepted/tizen/common/20170307.134027 accepted/tizen/ivi/20170307.222010 accepted/tizen/mobile/20170307.221927 accepted/tizen/tv/20170307.221939 accepted/tizen/unified/20170309.033210 accepted/tizen/wearable/20170307.221956 submit/tizen/20170307.093310 submit/tizen_unified/20170308.100408
authorJiyong Min <jiyong.min@samsung.com>
Tue, 7 Mar 2017 09:22:35 +0000 (18:22 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Tue, 7 Mar 2017 09:28:57 +0000 (18:28 +0900)
commita222713c35f39e89bdbf9f1d28552a5518315a6b
tree59a6c48d26aa3230e3d0ea9cf4b0148536772d6f
parentcd4ee6c9d26fc83429075c9dbe77e8d98103a718
Remove unused static variable to fix build error

 [Problem] After update tool chain to GCC6, 'definded but not used' build error happen

Before GCC6 -Wunused-variable (enabled by -Wall) didn’t warn for unused static const variables in C.
This was because some old code had constructs like: static const char rcs_id[] = "$Id:...";.
But this old special use case is not very common anymore. And not warning about such unused variables was hiding real bugs.
So GCC6 introduces -Wunused-const-variable (enabled by -Wunused-variable for C, but not for C++).

Change-Id: I075937a718b0dbbd3cab28df75084581bed363ab
Signed-off-by: jiyong.min <jiyong.min@samsung.com>
formats/ffmpeg/mm_file_format_mmf.c
packaging/libmm-fileinfo.spec