add: -Wpedantic build flag and fix code

This commit is contained in:
Tobias Reisinger 2020-04-23 16:59:46 +02:00
parent 11f1a79d6a
commit 5b9f2aa49b
7 changed files with 15 additions and 13 deletions

View file

@ -60,11 +60,11 @@ controller_debug(controller_t *controller)
}
char uuid_str[37];
uuid_unparse(controller->id, uuid_str);
LOG_DEBUG("(1/5) %s @ %p", uuid_str, controller);
LOG_DEBUG("(1/5) %s @ %p", uuid_str, (void*)controller);
LOG_DEBUG("(2/5) name: %s", controller->name);
LOG_DEBUG("(3/5) command_port: %5d discovery_port: %5d", controller->command_port, controller->discovery_port);
LOG_DEBUG("(4/5) relay count: %3d", controller->relay_count);
LOG_DEBUG("(5/5) relays @ %p:", controller->relays);
LOG_DEBUG("(5/5) relays @ %p:", (void*)controller->relays);
for(uint8_t i = 0; i < controller->relay_count; ++i)
{
relay_debug(controller->relays[i]);