This commit is contained in:
Siarhei Fedartsou 2024-06-18 18:10:39 +02:00
parent 7c2a2a2e72
commit d35ff9d28e

View File

@ -49,7 +49,7 @@ endmacro ()
add_warning(all)
add_warning(extra)
add_warning(pedantic)
# add_warning(error) # treat all warnings as errors
add_warning(error) # treat all warnings as errors
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
add_warning(strict-overflow=1)
endif()
@ -84,5 +84,3 @@ no_warning(comma-subscript)
no_warning(ambiguous-reversed-operator)
no_warning(restrict)
no_warning(free-nonheap-object)
no_warning(array-bounds)
no_warning(uninitialized)