C++避免编译警告unused


https://stackoverflow.com/questions/15763937/unused-parameter-in-c11

#define UNUSED(expr) do { (void)(expr); } while (0)

编译选项

-Wall -Wextra -Werror -Wconversion -Wshadow

你可能感兴趣的:(C++学习)