File: 02_fix_warnings.patch

package info (click to toggle)
quotatool 1%3A1.6.2-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 640 kB
  • sloc: sh: 3,238; ansic: 2,198; makefile: 57
file content (38 lines) | stat: -rw-r--r-- 1,032 bytes parent folder | download | duplicates (2)
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
Description: Fix a number of compiler warnings with gcc7 -Wall -Wextra
Forwarded: https://github.com/ekenberg/quotatool/pull/17
Author: Bas Zoetekouw <bas@debian.org>
Last-Update: 2018-08-10
--- a/src/quota.h
+++ b/src/quota.h
@@ -110,7 +110,7 @@
 int         quota_get      (quota_t *myquota);
 int         quota_set      (quota_t *myquota);

-int         xfs_reset_grace(quota_t *myquota, int grace_type);
+int         quota_reset_grace(quota_t *myquota, int grace_type);


 #endif /* INCLUDE_QUOTATOOL_QUOTA */
--- a/src/output.h
+++ b/src/output.h
@@ -17,8 +17,8 @@

 extern int output_level;

-inline void   output_version (void);
-inline void   output_help (void);
+void   output_version (void);
+void   output_help (void);

 void   output_debug (const char *format, ...);
 void   output_info (const char *format, ...);
--- a/src/parse.c
+++ b/src/parse.c
@@ -268,6 +268,7 @@

     case '?':
       output_error ("Unrecognized option: '%c'", optopt);
+      __attribute__ ((fallthrough));

     default:
       output_help();