1 From 77a79358cc72174cbba0dd44e313f6d06d96dbf4 Mon Sep 17 00:00:00 2001
2 From: Ken Gaillot <kgaillot@redhat.com>
3 Date: Thu, 2 Jan 2020 09:51:52 -0600
4 Subject: [PATCH] Refactor: attrd: properly declare global variables as extern
7 Restores buildability with GCC 10
9 daemons/attrd/pacemaker-attrd.h | 8 +++++---
10 1 file changed, 5 insertions(+), 3 deletions(-)
12 diff --git a/daemons/attrd/pacemaker-attrd.h b/daemons/attrd/pacemaker-attrd.h
13 index cc8e29ee1e..7b5ba03388 100644
14 --- a/daemons/attrd/pacemaker-attrd.h
15 +++ b/daemons/attrd/pacemaker-attrd.h
18 - * Copyright 2013-2018 Andrew Beekhof <andrew@beekhof.net>
19 + * Copyright 2013-2020 the Pacemaker project contributors
21 + * The version control history for this file may have further details.
23 * This source code is licensed under the GNU General Public License version 2
24 * or later (GPLv2+) WITHOUT ANY WARRANTY.
25 @@ -106,8 +108,8 @@ typedef struct attribute_value_s {
29 -crm_cluster_t *attrd_cluster;
30 -GHashTable *attributes;
31 +extern crm_cluster_t *attrd_cluster;
32 +extern GHashTable *attributes;
34 #define attrd_send_ack(client, id, flags) \
35 crm_ipcs_send_ack((client), (id), (flags), "ack", __FUNCTION__, __LINE__)