From 3ebfa9f044115a14bde5ebe6b863700367fcfd3d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 29 Sep 2019 21:02:49 +0200 Subject: [PATCH] LibDraw: Some build fixes for strange platforms Patch from Anonymous. --- Libraries/LibDraw/GraphicsBitmap.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Libraries/LibDraw/GraphicsBitmap.h b/Libraries/LibDraw/GraphicsBitmap.h index 8fd4cf00b3..9d09058384 100644 --- a/Libraries/LibDraw/GraphicsBitmap.h +++ b/Libraries/LibDraw/GraphicsBitmap.h @@ -47,10 +47,10 @@ public: case Format::RGB32: case Format::RGBA32: return 32; - case Format::Invalid: - return 0; default: ASSERT_NOT_REACHED(); + case Format::Invalid: + return 0; } } @@ -157,6 +157,7 @@ inline Color GraphicsBitmap::get_pixel(int x, int y) const return get_pixel(x, y); default: ASSERT_NOT_REACHED(); + return { }; } }