DescriptionOilpan: 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
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192201
Patch Set 1 #Patch Set 2 : Switch to a static_assert() #Messages
Total messages: 18 (3 generated)
|