Fix compile warning when compiling with GCC.

MFC after:	3 days
Sponsored by:	Mellanox Technologies