Removed all warnings except layout issues, and static analyzer now runs through without any issues. TODO: fix layout warnings.