From a7865e9c188242c2fc66d993ee4868decf214840 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 16 Mar 2015 14:51:35 -0700 Subject: Speculative fix for breakage in pdfum DEPS roll Speculative because we still don't have pdfium buildbots for mac/win on the pdfium waterfall. Nonetheless, the two build errors reported in https://codereview.chromium.org/989213003/ seem to be a default statement in a switch fully covering all of an enum constant, and the use of instead of on mac. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1011803003 --- samples/image_diff.cc | 2 +- samples/image_diff_png.cc | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/samples/image_diff.cc b/samples/image_diff.cc index 3f82b66527..c7560e1aa1 100644 --- a/samples/image_diff.cc +++ b/samples/image_diff.cc @@ -9,11 +9,11 @@ // what the run-webkit-tests script expects. #include +#include #include #include #include -#include #include #include #include diff --git a/samples/image_diff_png.cc b/samples/image_diff_png.cc index 04c2591b60..a54dc816cf 100644 --- a/samples/image_diff_png.cc +++ b/samples/image_diff_png.cc @@ -219,9 +219,6 @@ void DecodeInfoCallback(png_struct* png_ptr, png_info* info_ptr) { state->row_converter = &ConvertRGBtoBGRA; state->output_channels = 4; break; - default: - NOTREACHED(); - break; } } else if (channels == 4) { switch (state->output_format) { @@ -237,9 +234,6 @@ void DecodeInfoCallback(png_struct* png_ptr, png_info* info_ptr) { state->row_converter = &ConvertBetweenBGRAandRGBA; state->output_channels = 4; break; - default: - NOTREACHED(); - break; } } else { NOTREACHED(); @@ -568,10 +562,6 @@ bool EncodeWithCompressionLevel(const unsigned char* input, ColorFormat format, converter = ConvertBetweenBGRAandRGBA; } break; - - default: - NOTREACHED(); - return false; } // Row stride should be at least as long as the length of the data. -- cgit v1.2.3