daemon: Remove workaround for -Wanalyzer-mismatching-deallocation

On older GCC:

debug.c:116:32: error: unknown option after ‘#pragma GCC diagnostic’ kind [-Werror=pragmas]
  116 | #pragma GCC diagnostic ignored "-Wanalyzer-mismatching-deallocation"
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [Makefile:2039: guestfsd-debug.o] Error 1

The upstream bug (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99193)
has now been fixed so the workaround is not necessary with the latest
GCC, so just delete the workaround.
This commit is contained in:
Richard W.M. Jones
2022-06-17 13:24:19 +01:00
parent ec27979398
commit 1087d314cc
2 changed files with 0 additions and 8 deletions

View File

@@ -103,9 +103,6 @@ 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.
@@ -154,7 +151,6 @@ commandrf (char **stdoutput, char **stderror, unsigned flags,
return r;
}
#pragma GCC diagnostic pop
/**
* Same as C<command>, but passing in an argv array.

View File

@@ -111,9 +111,6 @@ 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)
{
@@ -143,7 +140,6 @@ debug_help (const char *subcmd, size_t argc, char *const *const argv)
return r;
}
#pragma GCC diagnostic pop
/* Show open FDs. */
static char *