Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame^] | 1 | From 8a8f8446e803cad04d7bbceaab78ee45d9778c3c Mon Sep 17 00:00:00 2001 |
| 2 | From: Adrian Bunk <bunk@stusta.de> |
| 3 | Date: Tue, 12 May 2020 09:44:05 +0300 |
| 4 | Subject: Fix build with gcc 10 |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | Signed-off-by: Adrian Bunk <bunk@stusta.de> |
| 8 | --- |
| 9 | src/mbtheme.h | 2 +- |
| 10 | src/structs.h | 2 +- |
| 11 | 2 files changed, 2 insertions(+), 2 deletions(-) |
| 12 | |
| 13 | diff --git a/src/mbtheme.h b/src/mbtheme.h |
| 14 | index aa9a7c5..ad03bde 100644 |
| 15 | --- a/src/mbtheme.h |
| 16 | +++ b/src/mbtheme.h |
| 17 | @@ -46,7 +46,7 @@ typedef struct _mb_theme_param |
| 18 | |
| 19 | } MBThemeParam; |
| 20 | |
| 21 | -enum { |
| 22 | +typedef enum { |
| 23 | LAYER_GRADIENT_HORIZ = 1, |
| 24 | LAYER_GRADIENT_VERT, |
| 25 | LAYER_LABEL, |
| 26 | diff --git a/src/structs.h b/src/structs.h |
| 27 | index 24985e7..8f53e72 100644 |
| 28 | --- a/src/structs.h |
| 29 | +++ b/src/structs.h |
| 30 | @@ -148,7 +148,7 @@ |
| 31 | |
| 32 | /* Atoms, if you change these check ewmh_init() first */ |
| 33 | |
| 34 | -enum { |
| 35 | +typedef enum { |
| 36 | WM_STATE = 0, |
| 37 | WM_CHANGE_STATE, |
| 38 | WM_PROTOCOLS, |
| 39 | -- |
| 40 | 2.17.1 |
| 41 | |