diff options
author | Nick Kralevich <nnk@google.com> | 2019-02-15 13:05:47 -0800 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2019-02-15 13:05:47 -0800 |
commit | 13030b2fd3cc59d77d953455827b9f64da66e0da (patch) | |
tree | 2aa57ed0ace2259569d2a649cd27226ad2e92dd0 | |
parent | df5204a030cc8c2edda4c789b508abdb41adf80a (diff) | |
download | android_external_selinux-13030b2fd3cc59d77d953455827b9f64da66e0da.tar.gz android_external_selinux-13030b2fd3cc59d77d953455827b9f64da66e0da.tar.bz2 android_external_selinux-13030b2fd3cc59d77d953455827b9f64da66e0da.zip |
cil_write_ast.c: fix compile time error
Fix compile time error in Android specific code.
../cil/src/cil_write_ast.c: In function ‘__cil_write_node_helper’:
../cil/src/cil_write_ast.c:1156:17: error: variable ‘db’ set but not used [-Werror=unused-but-set-variable]
struct cil_db *db = NULL;
^~
../cil/src/cil_write_ast.c: In function ‘__cil_write_last_child_helper’:
../cil/src/cil_write_ast.c:1465:17: error: variable ‘db’ set but not used [-Werror=unused-but-set-variable]
struct cil_db *db = NULL;
^~
Test: compiles
Change-Id: I0af0e896ba1591ef43726dbee9906d581390e1f3
-rw-r--r-- | libsepol/cil/src/cil_write_ast.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libsepol/cil/src/cil_write_ast.c b/libsepol/cil/src/cil_write_ast.c index 3b252db7..bcf5f416 100644 --- a/libsepol/cil/src/cil_write_ast.c +++ b/libsepol/cil/src/cil_write_ast.c @@ -1153,7 +1153,6 @@ exit: static int __cil_write_node_helper(struct cil_tree_node *node, uint32_t *finished, void *extra_args) { int rc = SEPOL_OK; - struct cil_db *db = NULL; struct cil_args_write *args = NULL; FILE *cil_out = NULL; @@ -1162,7 +1161,6 @@ static int __cil_write_node_helper(struct cil_tree_node *node, uint32_t *finishe } args = extra_args; - db = args->db; cil_out = args->cil_out; switch (node->flavor) { @@ -1462,7 +1460,6 @@ exit: static int __cil_write_last_child_helper(struct cil_tree_node *node, void *extra_args) { int rc = SEPOL_ERR; - struct cil_db *db = NULL; struct cil_args_write *args = NULL; FILE *cil_out = NULL; @@ -1471,7 +1468,6 @@ static int __cil_write_last_child_helper(struct cil_tree_node *node, void *extra } args = extra_args; - db = args->db; cil_out = args->cil_out; if (node->parent && node->parent->flavor != CIL_ROOT && node->parent->flavor != CIL_SRC_INFO) { |