Merge pull request #389 from mwleeds/fix-op-shadow

Fix shadow of previous local
This commit is contained in:
Alexander Larsson
2020-09-14 10:34:16 +02:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -1600,7 +1600,7 @@ parse_args_recurse (int *argcp,
if (argc < 2)
die ("--remount-ro takes one argument");
SetupOp *op = setup_op_new (SETUP_REMOUNT_RO_NO_RECURSIVE);
op = setup_op_new (SETUP_REMOUNT_RO_NO_RECURSIVE);
op->dest = argv[1];
argv++;

View File

@@ -70,6 +70,7 @@ dnl Keep this in sync with ostree, except remove -Werror=declaration-after-state
CC_CHECK_FLAGS_APPEND([WARN_CFLAGS], [CFLAGS], [\
-pipe \
-Wall \
-Werror=shadow \
-Werror=empty-body \
-Werror=strict-prototypes \
-Werror=missing-prototypes \