fix [-Wunused-function] GCC warning