From: guido@trentalancia.com (Guido Trentalancia) Date: Mon, 05 Jun 2017 17:04:53 +0200 Subject: [refpolicy] [PATCH v2] fc_sort: avoid compiler warning/error In-Reply-To: <1496674594.4528.3.camel@trentalancia.com> References: <1496674594.4528.3.camel@trentalancia.com> Message-ID: <1496675093.4528.4.camel@trentalancia.com> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com Fix a "-Werror=implicit-fallthrough" compiler warning/error on the switch statement. This second version (v2) fixes a bug introduced with the previous version. Signed-off-by: Guido Trentalancia --- support/fc_sort.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/support/fc_sort.c 2017-03-29 17:57:54.576386420 +0200 +++ b/support/fc_sort.c 2017-06-05 17:01:44.818724998 +0200 @@ -292,6 +292,11 @@ void fc_fill_data(file_context_node_t *f /* If a escape character is found, * skip the next character. */ c++; + /* If no meta character has been found yet, + * add one to the stem length. */ + if (!fc_node->meta) + fc_node->stem_len++; + break; default: /* If no meta character has been found yet, * add one to the stem length. */