another quick OS X Lion gcc suggestion
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 2 May 2012 20:33:39 +0000 (20:33 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 2 May 2012 20:33:39 +0000 (20:33 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@12149 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/pbd/crossthread.cc

index 553c8d52f3369ee3df67d4723ac53ff041b5c2b1..2ffede5163aecc736372818fd82ddb934b2d8d42 100644 (file)
@@ -104,7 +104,7 @@ CrossThreadChannel::drain (int fd)
 {
        /* drain selectable fd */
        char buf[64];
-       while (::read (fd, buf, sizeof (buf)) > 0);
+       while (::read (fd, buf, sizeof (buf)) > 0) {};
 }
 
 int