Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1452)

Unified Diff: src/views/mac/SkNSView.mm

Issue 2068863002: Added warning for variable-length arrays to GYP (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Made array size variable 'const' in file triggering -Wvla Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/common_conditions.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/views/mac/SkNSView.mm
diff --git a/src/views/mac/SkNSView.mm b/src/views/mac/SkNSView.mm
index 3a096f684a026ac6c9ba27fc6d91a09dc06dbab0..73b353f15d77c8d512d1f38e683317fae12d4dfc 100644
--- a/src/views/mac/SkNSView.mm
+++ b/src/views/mac/SkNSView.mm
@@ -344,7 +344,7 @@ static CGLContextObj createGLContext(int msaaSampleCount) {
CGLPixelFormatObj format;
GLint npix = 0;
if (msaaSampleCount > 0) {
- static int kAttributeCount = SK_ARRAY_COUNT(attributes);
+ static const int kAttributeCount = SK_ARRAY_COUNT(attributes);
CGLPixelFormatAttribute msaaAttributes[kAttributeCount + 5];
memcpy(msaaAttributes, attributes, sizeof(attributes));
SkASSERT(0 == msaaAttributes[kAttributeCount - 1]);
« no previous file with comments | « gyp/common_conditions.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698