eina_lock: add empty do-while in macro
authorYeongjong Lee <cleanlyj@naver.com>
Mon, 22 Oct 2018 09:04:21 +0000 (11:04 +0200)
committerYeongjong Lee <yj34.lee@samsung.com>
Thu, 8 Nov 2018 06:40:46 +0000 (15:40 +0900)
commit0badd76f972ba77c54b7839dcc3caed0b8b3834b
tree2d84815dfaf687ffe5622550d7165515b281754e
parent90042f3173cda50bb4a9806b816842f378bda11d
eina_lock: add empty do-while in macro

Summary:
empty do-while is needed for safe use.
This patch avoid empty body compiler warning.

Problem case:
if (b)
  EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);

Reviewers: segfaultxavi, Hermet, ManMower, bu5hm4n

Reviewed By: segfaultxavi, bu5hm4n

Subscribers: bu5hm4n, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7182
src/lib/eina/eina_lock.h