[core] Enforced pedantic warnings