Build warning fix for gcc