[layouts] Fix compiler warnings