File: 17-Fix-FTBFS-gcc10.patch

package info (click to toggle)
super 3.30.3-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,860 kB
  • sloc: ansic: 23,608; makefile: 424; sh: 297
file content (22 lines) | stat: -rw-r--r-- 626 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Robert Luberda <robert@debian.org>
Date: Sat, 15 Aug 2020 00:49:25 +0200
Subject: Fix FTBFS with gcc-10

Bugs-Debian: https://bugs.debian.org/957850
---
 super.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/super.h b/super.h
index c9c7cad..385336c 100644
--- a/super.h
+++ b/super.h
@@ -290,7 +290,7 @@ typedef struct progList ProgList;
 
 /* ========================================================================= */
 #ifdef HAVE_ENUM
-enum {SUPER_AUTH_PASSWORD, SUPER_AUTH_PAM} Method;
+enum Method {SUPER_AUTH_PASSWORD, SUPER_AUTH_PAM};
 #else
 /* No enums! */
 #define SUPER_AUTH_PASSWORD 1