summaryrefslogtreecommitdiffstats
path: root/src/python
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2017-01-30 12:17:25 +0100
committerLukas Slebodnik <lslebodn@redhat.com>2017-02-01 14:10:44 +0100
commit2e505786d6d9d537f5b6631099862f6b93e2e687 (patch)
treedb4e316a409e6578c6fc4792116ecc4a8ab807ff /src/python
parentc369b062182c746849196e495db467198039edf4 (diff)
downloadsssd-2e505786d6d9d537f5b6631099862f6b93e2e687.tar.gz
sssd-2e505786d6d9d537f5b6631099862f6b93e2e687.tar.xz
sssd-2e505786d6d9d537f5b6631099862f6b93e2e687.zip
Suppres implicit-fallthrough from gcc 7
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 <fidencio@redhat.com>
Diffstat (limited to 'src/python')
-rw-r--r--src/python/pyhbac.c1
1 files changed, 1 insertions, 0 deletions
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;