Remove gcc warning

Add parenthesis around assignement used  as truth value