summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2019-03-28 16:21:28 +0100
committerJakub Jelen <jjelen@redhat.com>2019-07-04 15:12:21 +0200
commitaa00a2f26445a2b1fb45d53ce47314a31e8bf687 (patch)
treeb9f88f434db5e00dff666f48d49a3e5163f48e46 /src
parent44c2f9bab05e470a0ac1dd387bfcca3b1f0b0b6e (diff)
simpletlv: Avoid errors reported by clang
src/simpletlv.c:345:12: error: cast from 'gchar *' (aka 'char *') to 'struct simpletlv_member *' increases required alignment from 1 to 8 [-Werror,-Wcast-align] return (struct simpletlv_member *)g_array_free(tlv, FALSE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/simpletlv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simpletlv.c b/src/simpletlv.c
index be175ba..410a812 100644
--- a/src/simpletlv.c
+++ b/src/simpletlv.c
@@ -342,7 +342,7 @@ simpletlv_parse(unsigned char *data, size_t data_len, size_t *outtlv_len)
}
*outtlv_len = tlv->len;
- return (struct simpletlv_member *)g_array_free(tlv, FALSE);
+ return (struct simpletlv_member *)(void *)g_array_free(tlv, FALSE);
}
/* vim: set ts=4 sw=4 tw=0 noet expandtab: */