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?
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?
Try 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?
For C:
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra")
Rebuild your entire project. Most compilers don't rebuild every file when you just press build, so you will only see warnings from files that were changed.