Skip to content

Commit

Permalink
Merge pull request #285 from FeignClaims/fix/correct_message_level
Browse files Browse the repository at this point in the history
fix: correct message level for cppcheck fallback standard
  • Loading branch information
aminya authored Oct 23, 2024
2 parents b98498e + cea7292 commit b721800
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/StaticAnalyzers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ macro(enable_cppcheck CPPCHECK_OPTIONS)
set(CMAKE_CXX_CPPCHECK ${CMAKE_CXX_CPPCHECK} --std=c++${CMAKE_CXX_STANDARD})
else()
message(
${WARNING_MESSAGE}
STATUS
"cppcheck doesn't support specified C++ standard ${CMAKE_CXX_STANDARD}. Using the cppcheck default C++ standard version."
)
endif()
Expand All @@ -54,8 +54,8 @@ macro(enable_cppcheck CPPCHECK_OPTIONS)
elseif(CMAKE_C_STANDARD MATCHES [[99|11]])
set(CMAKE_C_CPPCHECK ${CMAKE_C_CPPCHECK} --std=c${CMAKE_C_STANDARD})
else()
message(${WARNING_MESSAGE}
"cppcheck doesn't support C ${CMAKE_C_STANDARD} standard. Using the cppcheck default"
message(STATUS
"cppcheck doesn't support C ${CMAKE_C_STANDARD} standard. Using the cppcheck default C standard version"
)
endif()
endif()
Expand Down

0 comments on commit b721800

Please sign in to comment.