Commit 3bbef91
ext4: remove an unused variable warning with CONFIG_QUOTA=n
The 'enable_quota' variable is only used in an CONFIG_QUOTA.
With CONFIG_QUOTA=n, compiler causes a harmless warning:
fs/ext4/super.c: In function ‘ext4_remount’:
fs/ext4/super.c:5840:6: warning: variable ‘enable_quota’ set but not used
[-Wunused-but-set-variable]
int enable_quota = 0;
^~~~~
Move 'enable_quota' into the same #ifdef CONFIG_QUOTA block
to remove an unused variable warning.
Signed-off-by: Austin Kim <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Link: https://lore.kernel.org/r/20210824034929.GA13415@raspberrypi
Signed-off-by: Theodore Ts'o <[email protected]>1 parent d4ffeeb commit 3bbef91
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5726 | 5726 | | |
5727 | 5727 | | |
5728 | 5728 | | |
5729 | | - | |
5730 | 5729 | | |
5731 | 5730 | | |
5732 | 5731 | | |
| 5732 | + | |
5733 | 5733 | | |
5734 | 5734 | | |
5735 | 5735 | | |
| |||
5934 | 5934 | | |
5935 | 5935 | | |
5936 | 5936 | | |
| 5937 | + | |
5937 | 5938 | | |
| 5939 | + | |
5938 | 5940 | | |
5939 | 5941 | | |
5940 | 5942 | | |
| |||
0 commit comments