Re: [PATCH] apparmor: Fix shadowed local variable in unpack_trans_table()

2017-07-06 Thread John Johansen
On 07/06/2017 06:44 AM, Serge E. Hallyn wrote: > Quoting Geert Uytterhoeven (ge...@linux-m68k.org): >> with W=2: >> >> security/apparmor/policy_unpack.c: In function ‘unpack_trans_table’: >> security/apparmor/policy_unpack.c:469: warning: declaration of ‘pos’ >> shadows a previous local >>

Re: [PATCH] apparmor: Fix shadowed local variable in unpack_trans_table()

2017-07-06 Thread Serge E. Hallyn
Quoting Geert Uytterhoeven (ge...@linux-m68k.org): > with W=2: > > security/apparmor/policy_unpack.c: In function ‘unpack_trans_table’: > security/apparmor/policy_unpack.c:469: warning: declaration of ‘pos’ > shadows a previous local > security/apparmor/policy_unpack.c:451: warning: s

[PATCH] apparmor: Fix shadowed local variable in unpack_trans_table()

2017-07-06 Thread Geert Uytterhoeven
with W=2: security/apparmor/policy_unpack.c: In function ‘unpack_trans_table’: security/apparmor/policy_unpack.c:469: warning: declaration of ‘pos’ shadows a previous local security/apparmor/policy_unpack.c:451: warning: shadowed declaration is here Rename the old "pos" to "saved_pos