linux - mac compiling error/warning fixed