renderer2: gcc warning fixes