[Pkg-wmaker-commits] [wmcdplay] 44/79: wmcdplay: Add parentheses in cdctl.h.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 20 11:04:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmcdplay.

commit 80652c0a94eb424c3019e56e4ff417898d7f1f62
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Thu Dec 18 12:30:43 2014 -0600

    wmcdplay: Add parentheses in cdctl.h.
    
    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/
---
 cdctl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cdctl.h b/cdctl.h
index 8710b6c..0a008f2 100644
--- a/cdctl.h
+++ b/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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmcdplay.git



More information about the Pkg-wmaker-commits mailing list