Fix compile error with -w