It's not clear to me that they will compile ad I get errors with simple examples.
If the compiler ignores these calls to analogRead() and the purpose of them was to stabilize the input capacitor with multiple reads, then the changed return type will be contrary to the purpose.
Actually, they do compile, and a vague statement of the form "I get errors with simple examples" is meaningless noise unless accompanied by the simple example and the error message it generated. When a "simple example" fails, it usually means the example is wrong, and the compiler has properly reported this incorrect example as being incorrect.
I spent 15 years dealing with silly posts like this, and when we finally extracted the source code and error message of the "failing example", the example was, without exception, wrong. For example
extern int SomeFunction();
(void) SomeFunction();
This actually compiled correctly, but the OP of that issue got a linker error message that SomeFunction was an undefined symbol, and erroneously claimed that the example "would not compile". So without the example and the error message(s), you are wasting time making (silly) claims that "I get errors".
I have a related problem, that the library I am including does not compile. I didn't write the code, but it gets an error message. What did I do wrong? [If you answer that correctly, then I can understand why you didn't see the need to post the code of your "simple example". But I'm typing this on my iPad, which does not support PTP, so I don't know what you've done. (PTP is the Psychic Transfer Protocol)]
The compiler does not ignore the calls to analogRead(); no one, as far as I know, has suggested this as a possibility. What the (void) cast says is "I [the programmer] am ignoring whatever value this function returns, and I am doing this deliberately; I know what I am doing, so please, {compiler, tool} do not complain that I did not use the value returned". So at no point is the call ignored; in fact, the C/C++ language definitions mandate that the function be called.
joe