mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
daemon/command.c daemon/debug.c df/main.c: Ignore bogus GCC analyzer warnings
See upstream bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99193
This commit is contained in:
@@ -102,6 +102,9 @@ commandf (char **stdoutput, char **stderror, unsigned flags,
|
||||
return r;
|
||||
}
|
||||
|
||||
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99193
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wanalyzer-mismatching-deallocation"
|
||||
/**
|
||||
* Same as C<command>, but we allow the status code from the
|
||||
* subcommand to be non-zero, and return that status code.
|
||||
@@ -150,6 +153,7 @@ commandrf (char **stdoutput, char **stderror, unsigned flags,
|
||||
|
||||
return r;
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
/**
|
||||
* Same as C<command>, but passing in an argv array.
|
||||
|
||||
@@ -111,6 +111,9 @@ do_debug (const char *subcmd, char *const *argv)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99193
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wanalyzer-mismatching-deallocation"
|
||||
static char *
|
||||
debug_help (const char *subcmd, size_t argc, char *const *const argv)
|
||||
{
|
||||
@@ -140,6 +143,7 @@ debug_help (const char *subcmd, size_t argc, char *const *const argv)
|
||||
|
||||
return r;
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
/* Show open FDs. */
|
||||
static char *
|
||||
|
||||
@@ -374,6 +374,9 @@ single_drive_display_name (struct drv *drvs)
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99193
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wanalyzer-mismatching-deallocation"
|
||||
static char *
|
||||
make_display_name (struct drv *drvs)
|
||||
{
|
||||
@@ -411,3 +414,4 @@ make_display_name (struct drv *drvs)
|
||||
|
||||
return ret;
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
Reference in New Issue
Block a user