I want to see all compiler warnings in CLion. I don't want them treated as errors, but I want to inspect all of them.
How can I do this?
See Question&Answers more detail:osI want to see all compiler warnings in CLion. I don't want them treated as errors, but I want to inspect all of them.
How can I do this?
See Question&Answers more detail:osTry to set compiler flag in CMakeLists.txt
:
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
Related question: How to enable C++11 in CLion?