I loaded an example sketch, compiled it and got a load of warnings. (Unused variables, comparisons that will always resolve to false etc)
Without doing anything to the sketch, I compiled it again and got no warnings.
I understand that the warnings are related to one of the libraries, and I suspect if the sketch used other features of the library the warnings about (eg) unused variables might go away.
But what is the significance of getting the warnings on the first compile, but not the second?
The first time you compile the Arduino IDE saves the compiled version of the library code and reuses it on subsequent compiles, so you will only see the warning messages from libraries the first time you compile. This is also the reason that the first compile tends to be slower than subsequent compiles. If you change the board in Tools > Board you will see the warnings again the first time you compile for a different board.