OSDN Git Service

Fix -Wcast-qual warnings.
authorAlistair Strachan <astrachan@google.com>
Tue, 10 Apr 2018 01:49:51 +0000 (18:49 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Wed, 18 Apr 2018 03:53:02 +0000 (20:53 -0700)
commitf8ff0f5429bc7ad28f2db091787105f0d5363d88
tree07380996d60f6478b4012ee729781e4a5d02cd53
parentcdcebd879cbbfdb4d5161d0aee65bea859593141
Fix -Wcast-qual warnings.

The Android.mk file enables -Wcast-qual and clang finds problems in
gralloc0.cc where the constness of a pointer is being cast away. AOSP
master is setting -Werror, so these warnings break the build. Fix them.

Change-Id: I8820efab34a15d0653b89303d5390fb9f3eee12d
Reviewed-on: https://chromium-review.googlesource.com/1005719
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Alistair Strachan <astrachan@google.com>
Reviewed-by: Alistair Strachan <astrachan@google.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
cros_gralloc/gralloc0/gralloc0.cc