mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
build: fix build warnigns with Clang
This commit is contained in:
@ -121,7 +121,6 @@ main (gint argc,
|
||||
{
|
||||
SysprofCaptureReader *reader;
|
||||
const gchar *filename = argv[1];
|
||||
g_autoptr(GError) error = NULL;
|
||||
|
||||
if (argc < 2)
|
||||
{
|
||||
|
||||
@ -186,7 +186,6 @@ main (gint argc,
|
||||
{
|
||||
SysprofCaptureReader *reader;
|
||||
const gchar *filename;
|
||||
g_autoptr(GError) error = NULL;
|
||||
const gchar *category;
|
||||
const gchar *name;
|
||||
|
||||
|
||||
@ -64,7 +64,6 @@ main (gint argc,
|
||||
{
|
||||
SysprofCaptureReader *reader;
|
||||
const gchar *filename = argv[1];
|
||||
g_autoptr(GError) error = NULL;
|
||||
|
||||
if (argc < 2)
|
||||
{
|
||||
|
||||
@ -85,7 +85,6 @@ main (gint argc,
|
||||
gchar *argv[])
|
||||
{
|
||||
g_autoptr(SysprofCaptureReader) reader = NULL;
|
||||
g_autoptr(GError) error = NULL;
|
||||
|
||||
if (argc != 2)
|
||||
{
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user