diff options
author | mtklein <mtklein@chromium.org> | 2014-10-23 10:13:21 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-23 10:13:21 -0700 |
commit | df78d0a81cfada516fe98b1f02d954e831e5d9e7 (patch) | |
tree | 9ac4eb1125ec95afcfde5c88b42ce7c720b27158 /src | |
parent | 4f93f3c44116b87ac192da217da939b22eba6e80 (diff) |
This return_false is now only used on Android. Squelch a warning.
BUG=skia:
Review URL: https://codereview.chromium.org/659393004
Diffstat (limited to 'src')
-rw-r--r-- | src/images/SkImageDecoder_libjpeg.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/images/SkImageDecoder_libjpeg.cpp b/src/images/SkImageDecoder_libjpeg.cpp index 082adca04a..4f78865154 100644 --- a/src/images/SkImageDecoder_libjpeg.cpp +++ b/src/images/SkImageDecoder_libjpeg.cpp @@ -345,11 +345,13 @@ static bool return_false(const jpeg_decompress_struct& cinfo, return false; } +#ifdef SK_BUILD_FOR_ANDROID static bool return_false(const jpeg_decompress_struct& cinfo, const SkBitmap& bm, const char caller[]) { print_jpeg_decoder_errors(cinfo, bm.width(), bm.height(), caller); return false; } +#endif static SkImageDecoder::Result return_failure(const jpeg_decompress_struct& cinfo, const SkBitmap& bm, const char caller[]) { |