Fix more new Clang warnings
Change-Id: I82a13744669a6b5c23e23e6a719ec79878114dab Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418697 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Kevin Lubick <kjlubick@google.com>
This commit is contained in:
parent
c03dc7e638
commit
3d5483a547
@ -279,6 +279,7 @@ public:
|
||||
|
||||
Cluster(TextRange textRange) : fTextRange(textRange), fGraphemeRange(EMPTY_RANGE) { }
|
||||
|
||||
Cluster(const Cluster&) = default;
|
||||
~Cluster() = default;
|
||||
|
||||
SkScalar sizeToChar(TextIndex ch) const;
|
||||
|
@ -67,6 +67,8 @@ public:
|
||||
|
||||
class BitmapDevicePainter {
|
||||
public:
|
||||
BitmapDevicePainter() = default;
|
||||
BitmapDevicePainter(const BitmapDevicePainter&) = default;
|
||||
virtual ~BitmapDevicePainter() = default;
|
||||
|
||||
virtual void paintPaths(
|
||||
|
@ -14,6 +14,11 @@
|
||||
|
||||
#include <dwrite.h>
|
||||
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wcast-function-type"
|
||||
#endif
|
||||
|
||||
static IDWriteFactory* gDWriteFactory = nullptr;
|
||||
|
||||
static void release_dwrite_factory() {
|
||||
@ -126,4 +131,8 @@ HRESULT SkGetGetUserDefaultLocaleNameProc(SkGetUserDefaultLocaleNameProc* proc)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#endif//defined(SK_BUILD_FOR_WIN)
|
||||
|
@ -276,6 +276,11 @@ SkWGLExtensions::SkWGLExtensions() {
|
||||
SkASSERT(dummyGLRC);
|
||||
wglMakeCurrent(dummyDC, dummyGLRC);
|
||||
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wcast-function-type"
|
||||
#endif
|
||||
|
||||
GET_PROC(GetExtensionsString, ARB);
|
||||
GET_PROC(ChoosePixelFormat, ARB);
|
||||
GET_PROC(GetPixelFormatAttribiv, ARB);
|
||||
@ -287,6 +292,10 @@ SkWGLExtensions::SkWGLExtensions() {
|
||||
GET_PROC(ReleasePbufferDC, ARB);
|
||||
GET_PROC(DestroyPbuffer, ARB);
|
||||
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
wglMakeCurrent(dummyDC, nullptr);
|
||||
wglDeleteContext(dummyGLRC);
|
||||
destroy_dummy_window(dummyWND);
|
||||
|
Loading…
Reference in New Issue
Block a user