From: Johann Date: Wed, 26 Aug 2015 17:12:14 +0000 (-0700) Subject: Add INLINE decoration to static test functions X-Git-Tag: v1.5.0~201^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5b76ba26e34515af7f9a15e06568440c8df39bc;p=platform%2Fupstream%2Flibvpx.git Add INLINE decoration to static test functions Fixes "unused function" warnings. Change-Id: Idc0cd06189917c37dead17d923ac7f9ecef18983 --- diff --git a/test/util.h b/test/util.h index 3c45721..270fdb3 100644 --- a/test/util.h +++ b/test/util.h @@ -19,8 +19,7 @@ // Macros #define GET_PARAM(k) std::tr1::get< k >(GetParam()) -static double compute_psnr(const vpx_image_t *img1, - const vpx_image_t *img2) { +static INLINE double compute_psnr(const vpx_image_t *img1, const vpx_image_t *img2) { assert((img1->fmt == img2->fmt) && (img1->d_w == img2->d_w) && (img1->d_h == img2->d_h)); diff --git a/test/video_source.h b/test/video_source.h index 63294d1..d7dbfb0 100644 --- a/test/video_source.h +++ b/test/video_source.h @@ -48,7 +48,7 @@ static std::string GetDataPath() { #undef TO_STRING #undef STRINGIFY -static FILE *OpenTestDataFile(const std::string& file_name) { +static INLINE FILE *OpenTestDataFile(const std::string& file_name) { const std::string path_to_source = GetDataPath() + "/" + file_name; return fopen(path_to_source.c_str(), "rb"); }