[vlc-devel] commit: Explicit parenthesis when mixing && and || ( Rémi Denis-Courmont )

git version control git at videolan.org
Fri Sep 19 15:50:25 CEST 2008


vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <rdenis at simphalempin.com> | Fri Sep 19 16:42:47 2008 +0300| [a12ef1d08970b2421ea1549c90bd810bd5866728] | committer: Rémi Denis-Courmont 

Explicit parenthesis when mixing && and ||
(cherry picked from commit b6e52e1f2193407e820ef0e88c043cccca3e25b4)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a12ef1d08970b2421ea1549c90bd810bd5866728
---

 include/vlc_threads.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/vlc_threads.h b/include/vlc_threads.h
index 2eac7f9..8627333 100644
--- a/include/vlc_threads.h
+++ b/include/vlc_threads.h
@@ -562,7 +562,8 @@ static inline int vlc_spin_init (vlc_spinlock_t *spin)
 #endif
 static inline void barrier (void)
 {
-#if defined (__GNUC__) && (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)
+#if defined (__GNUC__) && \
+            ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1))
     __sync_synchronize ();
 #elif defined(__APPLE__)
     OSMemoryBarrier ();




More information about the vlc-devel mailing list