Re: [PATCH] ext4: remove an unused variable warning with CONFIG_QUOTA=n

From
Theodore Ts'o <tytso@mit.edu>
Date
2021-10-28 14:56:50
Also in
lkml
Reply to
Austin Kim, 2021-08-24
On Tue, 24 Aug 2021 04:49:29 +0100, Austin Kim wrote:
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;
              ^~~~~

[...]
Applied, thanks!

[1/1] ext4: remove an unused variable warning with CONFIG_QUOTA=n
      commit: d94ca0e1d65f4c274e3425a35f23ffe58ecea18a

Best regards,
-- 
Theodore Ts'o [off-list ref]
Thread (4 messages) 4 messages, 3 authors, last reply 2021-10-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help