Oilpan: fix gcc compilation.

To catch out erroneous uses of unregisterPreFinalizer() over
class types T that do not provide an implementation of invokePreFinalizer()
(by way of USING_PRE_FINALIZER(), most likely), unregisterPreFinalizer()
currently asserts for T::invokePreFinalizer being bound and non-null.

This unfortunately runs into gcc's -Waddress warning ("the address of
<function> will never be null"), as the static method is statically
known and bound (where correctly used.)

Rephrase the assert by wrapping up the check in a sizeof() so as to
steer clear of gcc's fussiness.

R=
BUG=420515

Review URL: https://codereview.chromium.org/1000493003

git-svn-id: svn://svn.chromium.org/blink/trunk@192201 bbb929c8-8fbe-4397-9dbb-9b2b20218538
1 file changed
tree: 255ce098d0d290aa9917e35f258426baf3a45275
  1. third_party/