diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2016-03-05 15:31:04 +0100 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2016-03-10 14:35:22 +0100 |
commit | c6278b2fa4a7ea389ed4086b2def16e0e6cbb184 (patch) | |
tree | ecbd1015471b2218ce676d872a59b415417a5939 /src/util/sss_python.h | |
parent | fee2997ff25938bca8dd8e3df1d6a5a44b5b7698 (diff) | |
download | sssd-c6278b2fa4a7ea389ed4086b2def16e0e6cbb184.tar.gz sssd-c6278b2fa4a7ea389ed4086b2def16e0e6cbb184.tar.xz sssd-c6278b2fa4a7ea389ed4086b2def16e0e6cbb184.zip |
UTIL: Fix warning misleading-indentation
Warnings are emited from macro generated code in dlinklist.h
e.g.
src/ldb_modules/memberof.c:4209:13: error: statement is indented as if it were
guarded by... [-Werror=misleading-indentation]
DLIST_DEMOTE(ctx->group_list, grp, struct mbof_member *);
^~~~~~~~~~~~
src/ldb_modules/memberof.c:4209:13: note: ...this ‘if’ clause, but it is not
src/ldb_modules/memberof.c: In function ‘mbof_member_update’:
src/ldb_modules/memberof.c:4305:9: error: statement is indented as if it were
guarded by... [-Werror=misleading-indentation]
DLIST_PROMOTE(ctx->group_list, mem);
^~~~~~~~~~~~~
src/ldb_modules/memberof.c:4305:9: note: ...this ‘if’ clause, but it is not
src/ldb_modules/memberof.c: In function ‘mbof_rcmp_update’:
src/ldb_modules/memberof.c:4408:9: error: statement is indented as if it were
guarded by... [-Werror=misleading-indentation]
DLIST_REMOVE(ctx->user_list, x);
^~~~~~~~~~~~
src/util/crypto/nss/nss_obfuscate.c: In function ‘sss_password_decrypt’:
src/util/crypto/nss/nss_obfuscate.c:419:5: error: statement is indented
as if it were guarded by... [-Werror=misleading-indentation]
SAFEALIGN_COPY_UINT16_CHECK(&meth, obfbuf+p, obflen, &p);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/python/pyhbac.c: In function ‘PyInit_pyhbac’:
src/python/pyhbac.c:1987:5: error: statement is indented as if it were
guarded by... [-Werror=misleading-indentation]
TYPE_READY(m, pyhbac_hbacrule_type, "HbacRule");
^~~~~~~~~~
src/python/pyhbac.c:1987:5: note: ...this ‘if’ clause, but it is not
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Reviewed-by: Michal Židek <mzidek@redhat.com>
Diffstat (limited to 'src/util/sss_python.h')
-rw-r--r-- | src/util/sss_python.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util/sss_python.h b/src/util/sss_python.h index 7e2bac336..b3fdaad64 100644 --- a/src/util/sss_python.h +++ b/src/util/sss_python.h @@ -31,8 +31,9 @@ sss_exception_with_doc(char *name, char *doc, PyObject *base, PyObject *dict); /* Convenience macros */ #define TYPE_READY(module, type, name) do { \ - if (PyType_Ready(&type) < 0) \ - MODINITERROR; \ + if (PyType_Ready(&type) < 0) { \ + MODINITERROR; \ + } \ Py_INCREF(&type); \ PyModule_AddObject(module, \ discard_const_p(char, name), \ |