[Swan-commit] Changes to ref refs/heads/master
cagney at vault.libreswan.fi
Thu Jul 25 20:13:19 UTC 2019
Author: Andrew Cagney <cagney at gnu.org>
Date: Fri Jun 21 13:31:58 2019 -0400
chunks: replace CHUNK0() with THING_AS_CHUNK() - generates a warning when THING is constant
Convert writeable THING to a writeable CHUNK. When compiled with GCC
(at least) and THING is read-only, a warning will be generated.
This works because GCC doesn't like implictly converting a 'const'
&THING actual parameter to the non-const 'void*' formal parameter.
Using an explicit cast (such as in a static initializer) suppresses
For a read-only CHUNK like object, see THING_AS_SHUNK().
More information about the Swan-commit