This avoids the following warning during build: "warning: suggest parentheses around assignment used as truth value [-Wparentheses]" .
Patch from Debian [1]. [1] http://sources.debian.net/src/wmcdplay/1.0beta1-13/debian/patches/add_parentheses.patch/ --- wmcdplay/cdctl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wmcdplay/cdctl.h b/wmcdplay/cdctl.h index 8710b6c..0a008f2 100644 --- a/wmcdplay/cdctl.h +++ b/wmcdplay/cdctl.h @@ -85,7 +85,7 @@ public: tracksel=tsRandom; tskOurPlay=false; - if(cdfdopen=(cdfd=open(device,O_RDONLY | O_NONBLOCK))!=-1){ + if((cdfdopen = (cdfd = open(device,O_RDONLY | O_NONBLOCK))) != -1) { status_state=ssNoCD; status_track=0; status_pos=0; -- 2.1.0 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.