Cleaning warnings

In this branch I'm aiming to clean as much as possible issues reported with EXTRA compilation flags.

Several issues have been solved (mainly unused parameters issues). Using these EXTRA compilation flags I also have found some small pieces of code that were incorrect. 

I also discovered some files with WINDOWS line endings and I removed these ^M characters (when editing these files in other OS(s))

It remains much work to do in this branch