diff --git a/daemon/command.c b/daemon/command.c index 5bd79dfc8..5fcdb5a59 100644 --- a/daemon/command.c +++ b/daemon/command.c @@ -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, 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, but passing in an argv array. diff --git a/daemon/debug.c b/daemon/debug.c index 61eb93712..34681e1cd 100644 --- a/daemon/debug.c +++ b/daemon/debug.c @@ -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 * diff --git a/df/main.c b/df/main.c index ac79a3691..ed556db33 100644 --- a/df/main.c +++ b/df/main.c @@ -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