aboutsummaryrefslogtreecommitdiff
path: root/tests/glib-fixture.h
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-09-07 23:56:10 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-09-07 23:56:10 -0500
commitd0fc63394c52933c8380fe56b9ea2aebe7791f19 (patch)
treecd71996d23142816c9ab4518233f4be5c76210ce /tests/glib-fixture.h
parent059246d136ed8c24c5e78e6a966bf2dfc945fe4e (diff)
downloadayatana-indicator-power-d0fc63394c52933c8380fe56b9ea2aebe7791f19.tar.gz
ayatana-indicator-power-d0fc63394c52933c8380fe56b9ea2aebe7791f19.tar.bz2
ayatana-indicator-power-d0fc63394c52933c8380fe56b9ea2aebe7791f19.zip
silence warnings generated by clang -Weverything
Diffstat (limited to 'tests/glib-fixture.h')
-rw-r--r--tests/glib-fixture.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/glib-fixture.h b/tests/glib-fixture.h
index d333ab2..ce834a0 100644
--- a/tests/glib-fixture.h
+++ b/tests/glib-fixture.h
@@ -64,7 +64,7 @@ class GlibFixture : public ::testing::Test
const gchar * message,
gpointer self)
{
- auto tmp = g_strdup_printf ("%s:%d \"%s\"", log_domain, (int)log_level, message);
+ auto tmp = g_strdup_printf ("%s:%d \"%s\"", log_domain, int(log_level), message);
static_cast<GlibFixture*>(self)->log[log_level].push_back(tmp);
g_free(tmp);
}
@@ -101,7 +101,7 @@ class GlibFixture : public ::testing::Test
static gboolean
wait_for_signal__timeout(gpointer name)
{
- g_error("%s: timed out waiting for signal '%s'", G_STRLOC, (char*)name);
+ g_error("%s: timed out waiting for signal '%s'", G_STRLOC, static_cast<char*>(name));
return G_SOURCE_REMOVE;
}