aboutsummaryrefslogtreecommitdiffstats
path: root/src/sds.c
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-01-18 15:46:39 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-01-19 00:25:41 +0100
commit021b386ddac3384643d9342683cb448047f83a1a (patch)
treea2ba38467dd2b53e90274597afa9771ddf64b40d /src/sds.c
parent5079d22319930f47647d1ed9507ad07ec0b922d0 (diff)
downloadsds-021b386ddac3384643d9342683cb448047f83a1a.tar.xz
sdsheader: cast pointer through void pointer
Because a char* and struct sdshdr pointer have a different alignment you get the following warning when try to cast it directly: warning: cast from 'sds' (aka 'char *') to 'struct sdshdr *' increases required alignment from 1 to 8 [-Wcast-align] To silence the warning we cast it to a void pointer first.
Diffstat (limited to 'src/sds.c')
0 files changed, 0 insertions, 0 deletions