From 2e505786d6d9d537f5b6631099862f6b93e2e687 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Mon, 30 Jan 2017 12:17:25 +0100 Subject: Suppres implicit-fallthrough from gcc 7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some kind of comments are recognized by gcc7 but they are ignored with -Wimplicit-fallthrough=5 and only attributes disable the warning. Reviewed-by: Fabiano FidĂȘncio --- src/python/pyhbac.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/python') diff --git a/src/python/pyhbac.c b/src/python/pyhbac.c index 09d308a0f..f7633ee02 100644 --- a/src/python/pyhbac.c +++ b/src/python/pyhbac.c @@ -1621,6 +1621,7 @@ py_hbac_evaluate(HbacRequest *self, PyObject *args) goto fail; } /* FALLTHROUGH */ + SSS_ATTRIBUTE_FALLTHROUGH; case HBAC_EVAL_DENY: ret = PYNUMBER_FROMLONG(eres); break; -- cgit