If you compile once and you do not get many errors and then suddenly you alter something and get tons....it's usually a semicolon, parentheses, bracket, brace, something spelled wrong, etc.
If you compile once and you do not get many errors and then suddenly you alter something and get tons....it's usually a semicolon, parentheses, bracket, brace, something spelled wrong, etc.
Also, if you use an auto-indenting editor, the line with a missing semicolon will be shown by the fact that the NEXT line is indented differently than you'd expect.
I'm with brewbuck on "how can the compiler know which variation of many different possible mistakes you made"? It can see that clear is of void type, so shouldn't be used as math. [And it may also realize that a pointer is not a good target for multiplication, but it may also take more effort to do that, and it will ONLY fix the particular case where semicolon is missing after a function followed by a dereference to a pointer - not one of the most common mistakes, I wouldn think].
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.