[BSP] fixed a compiling warning with GCC