summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
Diffstat (limited to 'samples')
-rw-r--r--samples/image_diff.cc2
-rw-r--r--samples/image_diff_png.cc10
2 files changed, 1 insertions, 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 <assert.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <algorithm>
-#include <cstdint>
#include <iostream>
#include <map>
#include <string>
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.