This patchset contains cleanups of various warnings, both introduced and not introduced by recent X*alloc purge. Newly introduced warnings in mi/atom.c will be fixed as a separate patch.