DescriptionDisable Clang's warnings about undefined pointer comparisons in Debug builds
The address of a reference, or the 'this' pointer, are always non-NULL
in well-defined C/C++ programs, and Clang warns about comparing them to NULL,
because the comparisons may be optimized away.
However, it can still be useful to do such comparisons in Debug builds.
For example, Skia does a lot of SkASSERT(&a), where a is a reference
parameter.
BUG=404271
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290361
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|