PTAL. GrPlatform3DContext is declared as a typedef to an intptr_t, which triggers the following warning ...
13 years, 6 months ago
(2011-06-07 04:43:43 UTC)
#1
PTAL.
GrPlatform3DContext is declared as a typedef to an intptr_t, which triggers the
following warning under GCC 4.6:
third_party/skia/gpu/src/GrContext.cpp: In static member function ‘static
GrContext* GrContext::CreateGLShaderContext()’:
third_party/skia/gpu/src/GrContext.cpp:60:60: warning: passing NULL to
non-pointer argument 2 of ‘static GrContext* GrContext::Create(GrEngine,
GrPlatform3DContext)’ [-Wconversion-null]
Replacing NULL with an integer type (0) satisfies the warning.
Issue 4571048: GCC 4.6 fix: intptr_t <-> NULL triggers a warning
(Closed)
Created 13 years, 6 months ago by Ryan Sleevi
Modified 13 years, 6 months ago
Reviewers: bsalomon, reed1, thakis
Base URL: http://skia.googlecode.com/svn/trunk/gpu/
Comments: 0