Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
#include "json_helper.hpp"
#include "json_helper.hpp"
#include <json.h>
json_object *to_json(genivi::surface_properties const &s) {
#include <json.h>
json_object *to_json(genivi::surface_properties const &s) {
return this->app.init();
}
return this->app.init();
}
-int display_event_callback(sd_event_source *evs, int fd, uint32_t events,
+int display_event_callback(sd_event_source *evs, int /*fd*/, uint32_t events,
error:
sd_event_source_unref(evs);
error:
sd_event_source_unref(evs);
- if (getenv("WINMAN_EXIT_ON_HANGUP") != nullptr)
+ if (getenv("WINMAN_EXIT_ON_HANGUP") != nullptr) {
logdebug("afb_event_broadcast failed: %m");
}
}
logdebug("afb_event_broadcast failed: %m");
}
}
extern "C" const struct afb_binding_v2 afbBindingV2 = {
"winman", nullptr, nullptr, winman_verbs, nullptr, binding_init, nullptr, 0};
extern "C" const struct afb_binding_v2 afbBindingV2 = {
"winman", nullptr, nullptr, winman_verbs, nullptr, binding_init, nullptr, 0};
#ifdef SCOPE_TRACING
thread_local int ScopeTrace::indent = 0;
#ifdef SCOPE_TRACING
thread_local int ScopeTrace::indent = 0;
-explicit ScopeTrace::ScopeTrace(char const *func) : f(func) {
+ScopeTrace::ScopeTrace(char const *func) : f(func) {
fprintf(stderr, "%lu %*s%s -->\n", pthread_self(), 2 * indent++, "", this->f);
}
ScopeTrace::~ScopeTrace() { fprintf(stderr, "%lu %*s%s <--\n", pthread_self(), 2 * --indent, "", this->f); }
fprintf(stderr, "%lu %*s%s -->\n", pthread_self(), 2 * indent++, "", this->f);
}
ScopeTrace::~ScopeTrace() { fprintf(stderr, "%lu %*s%s <--\n", pthread_self(), 2 * --indent, "", this->f); }