https://github.com/torvalds/linux
Revision 19fe43a54fb67b6cc8857e65c78e1dc8aa2e97a3 authored by Geert Uytterhoeven on 06 July 2017, 08:56:21 UTC, committed by John Johansen on 22 September 2017, 20:00:57 UTC
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" to fix this.

Fixes: 5379a3312024a8be ("apparmor: support v7 transition format compatible with label_parse")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
1 parent 520eccd
History
Tip revision: 19fe43a54fb67b6cc8857e65c78e1dc8aa2e97a3 authored by Geert Uytterhoeven on 06 July 2017, 08:56:21 UTC
apparmor: Fix shadowed local variable in unpack_trans_table()
Tip revision: 19fe43a

back to top