[Swan-commit] Changes to ref refs/heads/master
Andrew Cagney
cagney at vault.libreswan.fi
Thu Jul 25 20:13:19 UTC 2019
New commits:
commit 52c2fa46253b31aa1548542a7c2d0d086020a3a1
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
this warning.
For a read-only CHUNK like object, see THING_AS_SHUNK().
More information about the Swan-commit
mailing list