title: Using strtok in while loop; warning: using the result of an assignment as a condition without parentheses
body: <p>As part of a much larger program I am using strtok in a while loop. </p>
  
  <p>while(cmd2Args[count] = strtok(NULL, " ")){count++;}</p>
  
  <p>But the following warning is received 
  warning: using the result of an assignment as a condition without parentheses
        [-Wparentheses]</p>
  
  <p>The program successfully compiles and functions as intended. 
  Under what situations should such a warning be considered?
  Is this bad programming style?</p>