]> granicus.if.org Git - gc/commit
Eliminate 'suspicious pointer subtraction' cppcheck warning (gc_cpp)
authorIvan Maidanski <ivmai@mail.ru>
Wed, 26 Oct 2016 08:13:29 +0000 (11:13 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 31 Oct 2016 21:28:16 +0000 (00:28 +0300)
commitd0761f0d9c81c3d29009e75ac15623748268228d
tree35acd78c5694b112556765ec9af6207b8c118c25
parent400bda96dad6a86c377613f3f9a803eb1859f453
Eliminate 'suspicious pointer subtraction' cppcheck warning (gc_cpp)

* include/gc_cpp.h (gc_cleanup::gc_cleanup): Define this_ptr void
pointer; use this_ptr instead of this keyword to outline that the
pointer subtraction is intentional (i.e., "this->" was not intended).
include/gc_cpp.h