[pulseaudio-commits] r1866 - /branches/lennart/src/pulsecore/thread.h

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Tue Sep 18 17:08:40 PDT 2007


Author: lennart
Date: Wed Sep 19 02:08:40 2007
New Revision: 1866

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1866&root=pulseaudio&view=rev
Log:
copy free_cb into a temporary variable first, to avoid compiler warning

Modified:
    branches/lennart/src/pulsecore/thread.h

Modified: branches/lennart/src/pulsecore/thread.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/thread.h?rev=1866&root=pulseaudio&r1=1865&r2=1866&view=diff
==============================================================================
--- branches/lennart/src/pulsecore/thread.h (original)
+++ branches/lennart/src/pulsecore/thread.h Wed Sep 19 02:08:40 2007
@@ -70,9 +70,10 @@
     }                                                                   \
     static void name##_tls_destructor(void) PA_GCC_DESTRUCTOR;          \
     static void name##_tls_destructor(void) {                           \
+        static void (*_free_cb)(void*) = free_cb;                       \
         if (!name##_tls.tls)                                            \
             return;                                                     \
-        if (free_cb) {                                                  \
+        if (_free_cb) {                                                 \
             void *p;                                                    \
             if ((p = pa_tls_get(name##_tls.tls)))                       \
                 free_cb(p);                                             \




More information about the pulseaudio-commits mailing list