[client] make the compiler happy when compiling with -Wall flag