From: Zdenek Kabelac Date: Fri, 23 Oct 2015 07:44:21 +0000 (+0200) Subject: cleanup: fix gcc compile with older pthread X-Git-Tag: v2_02_133~63 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=b5b2a5483450dff10fd23a7b712649729e619b0d;p=lvm2.git cleanup: fix gcc compile with older pthread Older pthread library was missing 'trick' in pthread_cleanup_pop() which lead to compilation error: error: label at end of compound statement Use explicit ';' to fix it. --- diff --git a/daemons/dmeventd/dmeventd.c b/daemons/dmeventd/dmeventd.c index 949fcf42b..b5f1be3f7 100644 --- a/daemons/dmeventd/dmeventd.c +++ b/daemons/dmeventd/dmeventd.c @@ -1029,6 +1029,9 @@ static void *_monitor_thread(void *arg) } } out: + /* ';' fixes gcc compilation problem with older pthread macros + * "label at end of compound statement" */ + ; pthread_cleanup_pop(1);