for gcc, add warning option -Wsizeof-pointer-memaccess