warning fix under stricter compiler settings