summaryrefslogtreecommitdiff
path: root/gnome-base/gnome-control-center/files/gnome-control-center-3.32.2-fix-gcc10-fno-common.patch
blob: b0a7a70265488c9d1059f30673eeb2397b19b9b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 901ef8b0ff2b05692cbaa119097f70615ea77ed4 Mon Sep 17 00:00:00 2001
From: Mike Gorse <mgorse@suse.com>
Date: Thu, 9 Jan 2020 21:34:12 +0000
Subject: [PATCH] Thunderbolt: make BoltError enum a typedef

Fixes error when compiled with -fno-common
---
 panels/thunderbolt/bolt-error.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/panels/thunderbolt/bolt-error.h b/panels/thunderbolt/bolt-error.h
index 39b3eee98..7d3823d35 100644
--- a/panels/thunderbolt/bolt-error.h
+++ b/panels/thunderbolt/bolt-error.h
@@ -31,7 +31,7 @@ G_BEGIN_DECLS
  *
  * Error codes used inside Bolt.
  */
-enum {
+typedef enum {
   BOLT_ERROR_FAILED = 0,
   BOLT_ERROR_UDEV,
   BOLT_ERROR_NOKEY,
-- 
2.24.1