mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
clang -Wextra (more all that -Wall) (flutter/engine#2766)
I noticed this while doing the libjpeg_turbo roll.
This commit is contained in:
parent
6acced5b6d
commit
3a88860803
@ -932,12 +932,7 @@ config("chromium_code") {
|
||||
} else {
|
||||
cflags = [
|
||||
"-Wall",
|
||||
|
||||
# GCC turns on -Wsign-compare for C++ under -Wall, but clang doesn't,
|
||||
# so we specify it explicitly.
|
||||
# TODO(fischman): remove this if http://llvm.org/PR10448 obsoletes it.
|
||||
# http://code.google.com/p/chromium/issues/detail?id=90453
|
||||
"-Wsign-compare",
|
||||
"-Wextra",
|
||||
]
|
||||
|
||||
# In Chromium code, we define __STDC_foo_MACROS in order to get the
|
||||
|
||||
@ -64,7 +64,7 @@ class Layer {
|
||||
void set_parent(ContainerLayer* parent) { parent_ = parent; }
|
||||
|
||||
// subclasses should assume this will be true by the time Paint() is called
|
||||
const bool has_paint_bounds() const { return has_paint_bounds_; }
|
||||
bool has_paint_bounds() const { return has_paint_bounds_; }
|
||||
|
||||
const SkRect& paint_bounds() const {
|
||||
DCHECK(has_paint_bounds_);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user