DescriptionSkRRect.h: make kUnknown_Type part of the Type enum.
This fixes the following warnings from a recent Clang version (and also the
build error in SkRRect.cpp):
third_party/skia/include/core/SkRRect.h:86:27: error: comparison of constant -1 with expression of type 'SkRRect::Type' is always false [-Werror,-Wtautological-constant-out-of-range-compare]
if (kUnknown_Type == fType) {
~~~~~~~~~~~~~ ^ ~~~~~
third_party/skia/include/core/SkRRect.h:89:32: error: comparison of constant -1 with expression of type 'SkRRect::Type' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
SkASSERT(kUnknown_Type != fType);
~~~~~~~~~~~~~ ^ ~~~~~
../../third_party/skia/include/core/SkTypes.h:95:55: note: expanded from macro 'SkASSERT'
#define SkASSERT(cond) SK_DEBUGBREAK(cond)
^
../../skia/config/SkUserConfig.h:180:40: note: expanded from macro 'SK_DEBUGBREAK'
#define SK_DEBUGBREAK(cond) do { if (!(cond)) { \
^
BUG=crbug.com/163104
Patch Set 1 #Patch Set 2 : New try #
MessagesTotal messages: 4
|