aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2017-12-04 12:01:30 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-04 19:29:51 +0000
commit1ef80942b3b2414c862eb1e9ae301442b447c089 (patch)
tree27eb42492497d3516a008d1f038ce044d2c16c94 /samplecode
parent364c4c87c1321625ae961d8f2cf315096ccfd462 (diff)
turn on extended Clang warnings on Windows too
Plus some small rearrangements of the various warning lists. Change-Id: Ied58f940341d69ddab971a529fd01b1e96b65641 Reviewed-on: https://skia-review.googlesource.com/67720 Commit-Queue: Chris Dalton <csmartdalton@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'samplecode')
-rw-r--r--samplecode/SampleBigGradient.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/samplecode/SampleBigGradient.cpp b/samplecode/SampleBigGradient.cpp
index 301c3d8a29..c174f6e83c 100644
--- a/samplecode/SampleBigGradient.cpp
+++ b/samplecode/SampleBigGradient.cpp
@@ -186,7 +186,8 @@ static void DeleteHDCCallback(void*, void* context) {
// required so that we can call the base class' constructor with the pixel
// data.
static bool Create(int width, int height, bool is_opaque, SkRasterHandleAllocator::Rec* rec) {
- BITMAPINFOHEADER hdr = { 0 };
+ BITMAPINFOHEADER hdr;
+ memset(&hdr, 0, sizeof(hdr));
hdr.biSize = sizeof(BITMAPINFOHEADER);
hdr.biWidth = width;
hdr.biHeight = -height; // Minus means top-down bitmap.