diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2015-10-23 09:44:21 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2015-10-23 10:54:13 +0200 |
commit | b5b2a5483450dff10fd23a7b712649729e619b0d (patch) | |
tree | 455f5904d35701ed378073d7df45cc87c8698673 | |
parent | 21748a86309443ddaefe1fcc0644f0b9a6ea138e (diff) | |
download | lvm2-b5b2a5483450dff10fd23a7b712649729e619b0d.tar.gz |
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.
-rw-r--r-- | daemons/dmeventd/dmeventd.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |