diff options
author | Josh Stone <cuviper@gmail.com> | 2011-04-22 11:13:35 -0700 |
---|---|---|
committer | Alex Ray <aray@google.com> | 2013-07-30 13:56:56 -0700 |
commit | 8bb27951f592713bcb2c0e6605d89da665131637 (patch) | |
tree | 25e7f2513b03c4209b0a7f1daf336f26b0a2a3b3 /include | |
parent | aa13c1b90e5d9cae064bb425dd094ccbd411e073 (diff) | |
download | system_core-8bb27951f592713bcb2c0e6605d89da665131637.zip system_core-8bb27951f592713bcb2c0e6605d89da665131637.tar.gz system_core-8bb27951f592713bcb2c0e6605d89da665131637.tar.bz2 |
libutils: Fix an improper const-cast in RefBase
Under Fedora 15 Beta, gcc 4.6.0 warns:
frameworks/base/libs/utils/RefBase.cpp: In member function
‘void android::RefBase::weakref_type::trackMe(bool, bool)’:
frameworks/base/libs/utils/RefBase.cpp:483:67: error: passing
‘const android::RefBase::weakref_impl’ as ‘this’ argument of
‘void android::RefBase::weakref_impl::trackMe(bool, bool)’
discards qualifiers [-fpermissive]
trackMe is not a const function, so don't use const in the static_cast
to a weakref_impl pointer.
Change-Id: I3c9ba73eb127985f5f54197ffecf2939c50f632c
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions