Remove some warnings

I removed some warnings. Please see the diffs for more info.

There is still a warning due to tags_cb() defined but not used.