37 lines
942 B
Diff
37 lines
942 B
Diff
|
From 2effad829bd719d2316d7eea45ea6e4f9c291c67 Mon Sep 17 00:00:00 2001
|
||
|
From: Robbie Harwood <rharwood@redhat.com>
|
||
|
Date: Wed, 9 Feb 2022 14:42:24 -0500
|
||
|
Subject: [PATCH] Disable pragmas for warnings that are too old
|
||
|
|
||
|
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
|
||
|
---
|
||
|
src/daemon.c | 5 -----
|
||
|
1 file changed, 5 deletions(-)
|
||
|
|
||
|
diff --git a/src/daemon.c b/src/daemon.c
|
||
|
index c19eb80..01c612f 100644
|
||
|
--- a/src/daemon.c
|
||
|
+++ b/src/daemon.c
|
||
|
@@ -916,10 +916,6 @@ do_shutdown(context *ctx, int nsockets, struct pollfd *pollfds)
|
||
|
free(pollfds);
|
||
|
}
|
||
|
|
||
|
-/* GCC -fanalyzer has trouble with realloc
|
||
|
- * https://bugzilla.redhat.com/show_bug.cgi?id=2047926 */
|
||
|
-#pragma GCC diagnostic push
|
||
|
-#pragma GCC diagnostic ignored "-Wanalyzer-use-of-uninitialized-value"
|
||
|
static int
|
||
|
handle_events(context *ctx)
|
||
|
{
|
||
|
@@ -998,7 +994,6 @@ shutdown:
|
||
|
}
|
||
|
return 0;
|
||
|
}
|
||
|
-#pragma GCC diagnostic pop
|
||
|
|
||
|
static int
|
||
|
get_uid_and_gid(context *ctx, char **homedir)
|
||
|
--
|
||
|
2.34.1
|
||
|
|