]> sourceware.org Git - lvm2.git/commitdiff
cleanup: fix gcc compile with older pthread
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 23 Oct 2015 07:44:21 +0000 (09:44 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 23 Oct 2015 08:54:13 +0000 (10:54 +0200)
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.

daemons/dmeventd/dmeventd.c

index 949fcf42bdd3d38916f5c40e60a85cbdb1de8767..b5f1be3f708aead292d8faa9a0831e0c54f53f1c 100644 (file)
@@ -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);
 
This page took 0.038702 seconds and 5 git commands to generate.