pyldb: protect PyErr_LDB_ERROR_IS_ERR_RAISE() with do {} while(0)
authorStefan Metzmacher <metze@samba.org>
Tue, 8 Nov 2016 08:18:52 +0000 (09:18 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 23 Nov 2016 15:53:28 +0000 (16:53 +0100)
commite369d800ba64a4047787afd0b416f7d26cfd33f4
treedc8d5f5620b16744212d7ce7c944d7d47bfe3333
parent28fbc5ea2e39bf23808aee5035cfc2f58b7fbcfd
pyldb: protect PyErr_LDB_ERROR_IS_ERR_RAISE() with do {} while(0)

This should avoid the following warning:

 CID 1394274:  Control flow issues  (DEADCODE)
 Execution cannot reach this statement: ";".

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/ldb/pyldb.h