diff options
| author | Josh Stone <cuviper@gmail.com> | 2011-04-22 11:13:35 -0700 | 
|---|---|---|
| committer | Josh Stone <cuviper@gmail.com> | 2011-04-22 11:13:35 -0700 | 
| commit | e6b21626a5df95b66e0a0527564e2b9da100c5c3 (patch) | |
| tree | c9cf2fa3c1b62c103925a48b19cd72e069e477da /opengl/tests/gl_basic/gl_basic.cpp | |
| parent | 7b55adc7151c4a682e54365b86daa0e0e2dd57a0 (diff) | |
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 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions
