build: fix build warnigns with Clang

This commit is contained in:
Christian Hergert
2020-08-14 12:57:50 -07:00
parent f16bbac342
commit 620f1f0ff0
15 changed files with 19 additions and 34 deletions

View File

@ -121,7 +121,6 @@ main (gint argc,
{
SysprofCaptureReader *reader;
const gchar *filename = argv[1];
g_autoptr(GError) error = NULL;
if (argc < 2)
{

View File

@ -186,7 +186,6 @@ main (gint argc,
{
SysprofCaptureReader *reader;
const gchar *filename;
g_autoptr(GError) error = NULL;
const gchar *category;
const gchar *name;

View File

@ -64,7 +64,6 @@ main (gint argc,
{
SysprofCaptureReader *reader;
const gchar *filename = argv[1];
g_autoptr(GError) error = NULL;
if (argc < 2)
{

View File

@ -85,7 +85,6 @@ main (gint argc,
gchar *argv[])
{
g_autoptr(SysprofCaptureReader) reader = NULL;
g_autoptr(GError) error = NULL;
if (argc != 2)
{

View File

@ -26,7 +26,6 @@ main (gint argc,
{
g_autoptr(SysprofMountinfo) info = NULL;
g_autofree gchar *contents = NULL;
g_auto(GStrv) lines = NULL;
g_autoptr(GError) error = NULL;
g_autofree gchar *lookup = NULL;
gsize len;

View File

@ -28,7 +28,6 @@ main (gint argc,
{
g_autoptr(GPtrArray) resolvers = NULL;
g_autoptr(SysprofCaptureReader) reader = NULL;
g_autoptr(GError) error = NULL;
const SysprofCaptureSample *sample;
const gchar *filename;
@ -69,7 +68,7 @@ main (gint argc,
{
SysprofAddress addr = sample->addrs[a];
SysprofAddressContext context;
gboolean found;
gboolean found = FALSE;
if (sysprof_address_is_context_switch (addr, &context))
{