summaryrefslogtreecommitdiff
path: root/sys-fs/quotatool/files/quotatool-1.6.2-warnings.patch
blob: 0598f86b489b8abe77ead437746238ce382f96d0 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
https://github.com/ekenberg/quotatool/commit/09695c944947d804cbe3b5c7e2c854953984413e
https://github.com/ekenberg/quotatool/commit/af27842d1a6640d932407999ceec57f54a225a78

From 09695c944947d804cbe3b5c7e2c854953984413e Mon Sep 17 00:00:00 2001
From: Bas Zoetekouw <bas.zoetekouw@surfnet.nl>
Date: Thu, 9 Aug 2018 22:17:22 +0200
Subject: [PATCH] fix implicit fallthrough

--- a/src/parse.c
+++ b/src/parse.c
@@ -268,6 +268,7 @@ argdata_t *parse_commandline (int argc, char **argv)
 
     case '?':
       output_error ("Unrecognized option: '%c'", optopt);
+      __attribute__ ((fallthrough));
 
     default:
       output_help();


From af27842d1a6640d932407999ceec57f54a225a78 Mon Sep 17 00:00:00 2001
From: Johan Ekenberg <johan.ekenberg@gmail.com>
Date: Mon, 1 Apr 2019 13:19:08 +0200
Subject: [PATCH] Fix compiler warnings

__P() seems to not be used with modern compilers
Fix switch-case attribute fallthrough warning
--- a/src/linux/linux_quota.h
+++ b/src/linux/linux_quota.h
@@ -117,7 +117,7 @@ struct if_dqinfo {
 	#endif
 #endif
 
-long quotactl __P((int, const char *, qid_t, caddr_t));
+long quotactl (int, const char *, qid_t, caddr_t);
 
 /*
  * runtime detection of quota format
@@ -139,16 +139,3 @@ int kern_quota_format(fs_t *, int);
 #include "xfs_quota.h"
 
 #endif /* _QUOTA_ */
-
-
-
-
-
-
-
-
-
-
-
-
-
--- a/src/parse.c
+++ b/src/parse.c
@@ -268,7 +268,7 @@ argdata_t *parse_commandline (int argc, char **argv)
 
     case '?':
       output_error ("Unrecognized option: '%c'", optopt);
-      __attribute__ ((fallthrough));
+      // fall through
 
     default:
       output_help();