3.0 [fr] fix build warning

fix build warning and follow #2006