]> git.ipfire.org Git - thirdparty/squid.git/commit
Fixed clang -Winconsistent-missing-override warning.
authorAlex Rousskov <rousskov@measurement-factory.com>
Sat, 12 Mar 2016 05:01:46 +0000 (22:01 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sat, 12 Mar 2016 05:01:46 +0000 (22:01 -0700)
commit1625e4a110c31424e55f023944a58072dd2aed4d
tree297f9df5a8a73a70e63068df42a61682ee7b708b
parentabf396ecb7fcdc3e156c73d3eb221c5576627689
Fixed clang -Winconsistent-missing-override warning.

AsyncJob classes can now use C++11 overrides as long as they use the new
CBDATA_CHILD() macro instead of old CBDATA_CLASS().

I have prohibited multiple CBDATA_CHILD() classes on the same
inheritance branch by adding the "final" specifier to toCbdata(). Such
classes feel dangerous because they may have different sizes and it is
not obvious to me whether the cbdata code will call the right size-
specific delete for them. We can easily relax this later if needed.
src/base/AsyncJob.h
src/cbdata.h
src/fs/rock/RockHeaderUpdater.h