The warning is very clear. If you did intend to use the result of an assignment as truth value, you would notice. In any case, did not have a single problem with this type of error in the last decades, working with programmers of various skill levels including beginners.
The warning also says that it's an assignment. It's a pretty clear warning meant to force the programmer to do extra work to get the error.