mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -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 *
|
||||
|
||||
Reference in New Issue
Block a user