How do I enable all compiler warnings in CLion?
3 answers
Try setting the compiler flag to CMakeLists.txt
:
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
Related questions: How to enable C ++ 11 in CLion?
+5
source to share