Test fix: passing bool argument to va_start is undefined
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 2 Feb 2019 13:09:55 +0000 (08:09 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 11 Feb 2019 22:35:48 +0000 (17:35 -0500)
commit424d563a99442c223741fcb9f84725f429c140e8
tree6d645e0a2f22133c90adad5b5fc56d321404d18a
parent94223e306ae8c0ae0c625337317d779db6b30e0c
Test fix: passing bool argument to va_start is undefined

clang warns that "passing an object that undergoes default argument
promotion to 'va_start' has undefined behaviour [-Wvarargs]".

Since va_start's last argument has no known type, the boolean argument
is promoted to 'int', which is not guaranteed to have the same size
as 'bool'.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/unit/test_string_utils.c
This page took 0.025454 seconds and 4 git commands to generate.